NoMethod is a wrapper for Engine.NoMethod.
(handlers ...gin.HandlerFunc)
| 43 | |
| 44 | // NoMethod is a wrapper for Engine.NoMethod. |
| 45 | func NoMethod(handlers ...gin.HandlerFunc) { |
| 46 | engine().NoMethod(handlers...) |
| 47 | } |
| 48 | |
| 49 | // Group creates a new router group. You should add all the routes that have common middlewares or the same path prefix. |
| 50 | // For example, all the routes that use a common middleware for authorization could be grouped. |