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/handler/site.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/handler/site.go') diff --git a/api/handler/site.go b/api/handler/site.go index 2e099c8..cb9e0e4 100644 --- a/api/handler/site.go +++ b/api/handler/site.go @@ -40,6 +40,8 @@ func UploadSiteVersion(mainConfig *config.MainConfig, index *index.SiteIndex) fu } slog.Info("new version created", "site", site, "version", version, "remoteAddr", r.RemoteAddr) + + w.WriteHeader(http.StatusCreated) fmt.Fprintf(w, "version created: %s", version) } } -- cgit v1.2.3-70-g09d2