feat: pretty shitty code
This commit is contained in:
@@ -8,6 +8,8 @@ func middlewares(h *handler, next http.Handler) http.Handler {
|
||||
|
||||
func createRoutes(h *handler) map[string]http.Handler {
|
||||
routes := map[string]http.Handler{
|
||||
"/static/": middlewares(h, http.HandlerFunc(h.FileServer)),
|
||||
"/": middlewares(h, http.HandlerFunc(h.Index)),
|
||||
"/ping": middlewares(h, http.HandlerFunc(h.Ping)),
|
||||
"/metrics": middlewares(h, http.HandlerFunc(h.Metrics)),
|
||||
"/healthz": middlewares(h, http.HandlerFunc(h.Healthz)),
|
||||
|
||||
Reference in New Issue
Block a user