Fix redirect handler (again) to use notfound
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Tyler 2022-03-30 22:16:50 -04:00
parent 64551704a3
commit 99c0137034
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ func main() {
r.Post("/reload", reloadHandler)
r.Get("/dl_map", dlMapHandler)
r.Get("/metrics", promhttp.Handler().ServeHTTP)
r.HandleFunc("/*", redirectHandler)
r.NotFound(redirectHandler)
go http.ListenAndServe(viper.GetString("bind"), r)