- Add mounting support

- Fix minor issues
This commit is contained in:
Mukhtar Akere
2025-08-04 16:57:09 +01:00
parent a60d93677f
commit 139249a1f3
25 changed files with 1565 additions and 112 deletions

View File

@@ -90,7 +90,9 @@ type WebDav struct {
}
func New() *WebDav {
urlBase := config.Get().URLBase
cfg := config.Get()
urlBase := cfg.URLBase
w := &WebDav{
Handlers: make([]*Handler, 0),
URLBase: urlBase,
@@ -155,7 +157,7 @@ func (wd *WebDav) mountHandlers(r chi.Router) {
r.Route("/"+h.Name, func(r chi.Router) {
r.Use(h.readinessMiddleware)
r.Mount("/", h)
}) // Mount to /name since router is already prefixed with /webdav
})
}
}