Пример #1
0
func (m *Mounter) DeleteRoute() *route.Route {
	return m.Router.DELETE("/"+m.itemPath(), wrapstesting.HandlerMethod(m.serveDelete))
}
Пример #2
0
func (m *Mounter) UpdateRoute() *route.Route {
	return m.Router.PATCH("/"+m.itemPath(), wrapstesting.HandlerMethod(m.serveUpdate))
}
Пример #3
0
func (m *Mounter) CreateRoute() *route.Route {
	return m.Router.POST("/"+m.mountPoint, wrapstesting.HandlerMethod(m.serveCreate))
}
Пример #4
0
func (m *Mounter) ListRoute() *route.Route {
	return m.Router.GET("/"+m.mountPoint, wrapstesting.HandlerMethod(m.serveList))
}
Пример #5
0
func (m *Mounter) ReadRoute() *route.Route {
	return m.Router.GET("/"+m.itemPath(), wrapstesting.HandlerMethod(m.serveRead))
}