Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user