Improve webdav; add workers for refreshes

This commit is contained in:
Mukhtar Akere
2025-03-19 03:08:22 +01:00
parent 5d2fabe20b
commit 0d178992ef
18 changed files with 438 additions and 210 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ type Server struct {
}
func New() *Server {
cfg := config.GetConfig()
l := logger.NewLogger("http", cfg.LogLevel)
l := logger.NewLogger("http")
r := chi.NewRouter()
r.Use(middleware.Recoverer)
r.Handle("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))