Skip to content

Commit 5a5cf8e

Browse files
committed
fix: updated the route and handler for /health endpoint
1 parent a1b6888 commit 5a5cf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func init(){
2323
func main() {
2424
mux := http.NewServeMux()
2525

26-
mux.Handle("/", middlewares.AuthMiddleware(http.HandlerFunc(handlers.HomeHandler)))
26+
mux.Handle("/health", middlewares.AuthMiddleware(http.HandlerFunc(handlers.HealthHandler)))
2727
mux.Handle("/stats",middlewares.AuthMiddleware(http.HandlerFunc(handlers.StatsHandler)))
2828
mux.Handle("/work",http.HandlerFunc(handlers.WorkHandler))
2929
mux.Handle("/upload", middlewares.MaxBodySize(uploadsMaxBytes)(http.HandlerFunc(handlers.UploadHandler)))

0 commit comments

Comments
 (0)