fix(backup): restore backup export/import APIs and route compatibility

This commit is contained in:
sagit
2026-02-13 08:17:34 +00:00
parent 3799729706
commit 5a9715eb26
5 changed files with 522 additions and 0 deletions
@@ -115,6 +115,14 @@ func requiresAdmin(path string) bool {
return true
}
if strings.HasPrefix(path, "/api/v1/backup/") {
return true
}
if strings.HasPrefix(path, "/api/v1/api/v1/backup/") {
return true
}
if strings.HasPrefix(path, "/api/v1/tunnel/") {
if strings.HasPrefix(path, "/api/v1/tunnel/user/tunnel") {
return false