(path string)
| 338 | } |
| 339 | |
| 340 | func (s *Server) getRouter(path string) *mux.Router { |
| 341 | if strings.HasPrefix(path, "/api/") { |
| 342 | return s.apiRouter |
| 343 | } |
| 344 | return s.router |
| 345 | } |
| 346 | |
| 347 | var hashRegex = regexp.MustCompile(`\.([a-f0-9]{20}|[a-f0-9]{32})(\.bundle)?\.(js|css|woff|woff2|ttf|eot|jpg|jpeg|png|svg)$`) |
| 348 |
no test coverage detected