feat: pretty shitty code

This commit is contained in:
2024-11-20 20:18:45 -05:00
parent 91741b38a1
commit 3eeb4c8b48
9 changed files with 269 additions and 3 deletions

View File

@@ -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)),