aboutsummaryrefslogtreecommitdiffstats
path: root/api/mux.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/mux.go')
-rw-r--r--api/mux.go1
1 files changed, 1 insertions, 0 deletions
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
}