Refactor folder creation logic to reload directory from backend and normalize parent path

This commit is contained in:
Leon Bösche
2026-01-10 00:57:09 +01:00
parent c8cd82edb4
commit 7f6fe23219
5 changed files with 26 additions and 28 deletions

View File

@@ -27,6 +27,7 @@ func CORS(next http.Handler) http.Handler {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH, DELETE, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
w.Header().Set("Access-Control-Allow-Credentials", "true")
w.Header().Set("Access-Control-Max-Age", "3600")
if r.Method == http.MethodOptions {