feat(files): add v2 task and metadata workflows

This commit is contained in:
yoyuzh
2026-04-09 00:42:41 +08:00
parent c5362ebe31
commit 977eb60b17
60 changed files with 5218 additions and 72 deletions

View File

@@ -54,8 +54,22 @@ public class SecurityConfig {
.permitAll()
.requestMatchers(HttpMethod.GET, "/api/v2/site/ping")
.permitAll()
.requestMatchers("/api/v2/tasks/**")
.authenticated()
.requestMatchers("/api/v2/files/**")
.authenticated()
.requestMatchers(HttpMethod.GET, "/api/v2/shares/mine")
.authenticated()
.requestMatchers(HttpMethod.DELETE, "/api/v2/shares/*")
.authenticated()
.requestMatchers(HttpMethod.POST, "/api/v2/shares")
.authenticated()
.requestMatchers(HttpMethod.GET, "/api/v2/shares/*")
.permitAll()
.requestMatchers(HttpMethod.POST, "/api/v2/shares/*/verify-password")
.permitAll()
.requestMatchers("/api/v2/shares/**")
.authenticated()
.requestMatchers("/api/transfer/**")
.permitAll()
.requestMatchers(HttpMethod.GET, "/api/files/share-links/*")