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