POST is a shortcut for router.Handle("POST", path, handlers).
(relativePath string, handlers ...HandlerFunc)
| 109 | |
| 110 | // POST is a shortcut for router.Handle("POST", path, handlers). |
| 111 | func (group *RouterGroup) POST(relativePath string, handlers ...HandlerFunc) IRoutes { |
| 112 | return group.handle(http.MethodPost, relativePath, handlers) |
| 113 | } |
| 114 | |
| 115 | // GET is a shortcut for router.Handle("GET", path, handlers). |
| 116 | func (group *RouterGroup) GET(relativePath string, handlers ...HandlerFunc) IRoutes { |