diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:55:10 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:55:10 +0100 |
| commit | 4c3e5c256930249798768b0195c42efca1428586 (patch) | |
| tree | 0492551ddbfdfbaa192804b95d0ce11e6cbdb406 /web/mux.go | |
| parent | 08a3fb8a2b0281c3c329b33215ec7f8866add606 (diff) | |
Add site deletion
Diffstat (limited to 'web/mux.go')
| -rw-r--r-- | web/mux.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -25,6 +25,8 @@ func NewMux(cfg *config.MainConfig, siteIndex *index.SiteIndex, authenticator *a mux.HandleFunc("POST /site/{site}/flags", middleware.MustAuthenticate(authenticator, handler.PostFlags(cfg, siteIndex))) mux.HandleFunc("GET /site/{site}/host", middleware.MustAuthenticate(authenticator, handler.GetHost(siteIndex))) mux.HandleFunc("POST /site/{site}/host", middleware.MustAuthenticate(authenticator, handler.PostHost(cfg, siteIndex))) + mux.HandleFunc("GET /site/{site}/delete", middleware.MustAuthenticate(authenticator, handler.GetDelete(siteIndex))) + mux.HandleFunc("POST /site/{site}/delete", middleware.MustAuthenticate(authenticator, handler.PostDelete(cfg, siteIndex))) return mux } |
