diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-07-13 21:23:34 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-07-13 21:23:34 +0100 |
| commit | 684787bcb72aece2aa914597a3bc8788432e66f7 (patch) | |
| tree | a55fdcfc6f7f4d2f7ae86ba0a94e8d366f5c5cda /web/mux.go | |
| parent | cdb75d3fcbc9339b897f8c6ff4d69a577f017393 (diff) | |
Add flags
Diffstat (limited to 'web/mux.go')
| -rw-r--r-- | web/mux.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } |
