From b4a9e6d6c3c342b1f8e6d8a61190c53c0e9d4280 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 17 Jul 2025 15:50:34 +0100 Subject: Add not found handler to api mux --- api/mux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/mux.go') diff --git a/api/mux.go b/api/mux.go index 90e0ec7..e865682 100644 --- a/api/mux.go +++ b/api/mux.go @@ -11,6 +11,7 @@ import ( func NewMux(cfg *config.MainConfig, siteIndex *index.SiteIndex) *http.ServeMux { mux := http.NewServeMux() mux.HandleFunc("POST /site/{site}/upload", handler.UploadSiteVersion(cfg, siteIndex)) + mux.HandleFunc("/", http.NotFoundHandler().ServeHTTP) return mux } -- cgit v1.2.3-70-g09d2