From 684787bcb72aece2aa914597a3bc8788432e66f7 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 13 Jul 2025 21:23:34 +0100 Subject: Add flags --- web/mux.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/mux.go') diff --git a/web/mux.go b/web/mux.go index b6a5528..0821723 100644 --- a/web/mux.go +++ b/web/mux.go @@ -16,6 +16,8 @@ func NewMux(cfg *config.MainConfig, siteIndex *index.SiteIndex) *http.ServeMux { mux.HandleFunc("GET /site/{site}/", handler.GetSite(cfg, siteIndex)) mux.HandleFunc("GET /site/{site}/upload", handler.GetUpload(siteIndex)) mux.HandleFunc("POST /site/{site}/upload", handler.PostUpload(cfg, siteIndex)) + mux.HandleFunc("GET /site/{site}/flags", handler.GetFlags(siteIndex)) + mux.HandleFunc("POST /site/{site}/flags", handler.PostFlags(cfg, siteIndex)) return mux } -- cgit v1.2.3-70-g09d2