feat: complete federation sharing backend implementation

This commit is contained in:
sagit
2026-02-09 03:00:14 +00:00
parent 5925a84a6d
commit 7bc33f63ba
5 changed files with 146 additions and 9 deletions
@@ -81,6 +81,10 @@ func shouldSkip(path string) bool {
return true
case path == "/api/v1/user/login":
return true
case path == "/api/v1/federation/connect":
return true
case path == "/api/v1/federation/tunnel/create":
return true
default:
return false
}
@@ -91,6 +95,10 @@ func requiresAdmin(path string) bool {
return true
}
if strings.HasPrefix(path, "/api/v1/federation/share/") {
return true
}
if strings.HasPrefix(path, "/api/v1/node/") {
return true
}