Routes returns a slice of registered routes.
()
| 127 | |
| 128 | // Routes returns a slice of registered routes. |
| 129 | func Routes() gin.RoutesInfo { |
| 130 | return engine().Routes() |
| 131 | } |
| 132 | |
| 133 | // Run attaches to a http.Server and starts listening and serving HTTP requests. |
| 134 | // It is a shortcut for http.ListenAndServe(addr, router) |