Prefix returns a route for the given path prefix.
(prefix string)
| 361 | |
| 362 | // Prefix returns a route for the given path prefix. |
| 363 | func (s *Server) Prefix(prefix string) *mux.Route { |
| 364 | return s.getRouter(prefix).PathPrefix(prefix) |
| 365 | } |
| 366 | |
| 367 | // PrefixWithRedirect will create a route ending in slash. |
| 368 | // Paths which coincide with the route, but do not end with slash, will be |
no test coverage detected