From e1405a5fa2b825280773aad9d6d56cf743331cc1 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 4 Nov 2025 17:31:33 +0800 Subject: [PATCH] Update user endpoint definitions to include profile and teams retrieval - Added new endpoints for retrieving user profile and teams in the user scope initialization. - Ensured the existing endpoint for team selection remains included for continued functionality. --- openapi/user/user.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openapi/user/user.go b/openapi/user/user.go index 1b7f00d8..e7fb84c4 100644 --- a/openapi/user/user.go +++ b/openapi/user/user.go @@ -28,8 +28,10 @@ func init() { Name: ScopeTeamSelection, Description: "Team selection - temporary access for selecting a team after login", Endpoints: []string{ - "POST /user/teams/select", + "GET /user/profile", + "GET /user/teams", "GET /user/teams/config", + "POST /user/teams/select", "GET /file/:uploaderID/:fileID/content", }, },