示例#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))
}