feat: add download link to create a zip archive of restored files

This commit is contained in:
Gareth
2024-05-05 04:11:23 -07:00
parent 756e64a200
commit a75a5c2297
4 changed files with 95 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ func main() {
backrestHandlerPath, backrestHandler := v1connect.NewBackrestHandler(apiBackrestHandler)
mux.Handle(backrestHandlerPath, auth.RequireAuthentication(backrestHandler, authenticator))
mux.Handle("/", webui.Handler())
mux.Handle("/download/", http.StripPrefix("/download", api.NewDownloadHandler(oplog)))
// Serve the HTTP gateway
server := &http.Server{