routes for msoffice info, download and deleting files

This commit is contained in:
Johannes Bülow 2025-07-24 20:11:30 +02:00
parent 3a7f300966
commit 883d874fa1
Signed by: jmb
GPG key ID: B56971CF7B8F83A6

View file

@ -14,6 +14,9 @@ func RegisterRoutes() *http.ServeMux {
mux.HandleFunc("/about", web.AboutWebHandler) mux.HandleFunc("/about", web.AboutWebHandler)
mux.HandleFunc("/admin", web.AdminWebHandler) mux.HandleFunc("/admin", web.AdminWebHandler)
mux.HandleFunc("/files/{uuid}", web.FileViewWebHandler) 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.HandleFunc("POST /upload", web.IndexUploadHandler)
mux.Handle("/assets/", http.FileServer(http.FS(web.Files))) mux.Handle("/assets/", http.FileServer(http.FS(web.Files)))