From 883d874fa16a5df0ee4da1695a544d547da052ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Thu, 24 Jul 2025 20:11:30 +0200 Subject: [PATCH] routes for msoffice info, download and deleting files --- server/internal/server/routes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/internal/server/routes.go b/server/internal/server/routes.go index 2963ce9..968643f 100644 --- a/server/internal/server/routes.go +++ b/server/internal/server/routes.go @@ -14,6 +14,9 @@ func RegisterRoutes() *http.ServeMux { mux.HandleFunc("/about", web.AboutWebHandler) mux.HandleFunc("/admin", web.AdminWebHandler) mux.HandleFunc("/files/{uuid}", web.FileViewWebHandler) + mux.HandleFunc("/files/{uuid}/msoffice", web.FileViewMSOWebHandler) + mux.HandleFunc("/files/{uuid}/download", web.FileViewDownloadWebHandler) + mux.HandleFunc("/files/{uuid}/delete", web.FileViewDeleteWebHandler) mux.HandleFunc("POST /upload", web.IndexUploadHandler) mux.Handle("/assets/", http.FileServer(http.FS(web.Files)))