Fix redirect handler (again) to use notfound
This commit is contained in:
parent
64551704a3
commit
99c0137034
3
main.go
3
main.go
|
@ -119,7 +119,8 @@ func main() {
|
||||||
r.Post("/reload", reloadHandler)
|
r.Post("/reload", reloadHandler)
|
||||||
r.Get("/dl_map", dlMapHandler)
|
r.Get("/dl_map", dlMapHandler)
|
||||||
r.Get("/metrics", promhttp.Handler().ServeHTTP)
|
r.Get("/metrics", promhttp.Handler().ServeHTTP)
|
||||||
r.HandleFunc("/*", redirectHandler)
|
|
||||||
|
r.NotFound(redirectHandler)
|
||||||
|
|
||||||
go http.ListenAndServe(viper.GetString("bind"), r)
|
go http.ListenAndServe(viper.GetString("bind"), r)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue