feat: added most of shared API calls
Some checks failed
Format / formatting (push) Failing after 5s
CI / build (push) Successful in 10s

This commit is contained in:
Pierre Tellier
2025-02-26 15:31:02 +01:00
parent 1a6db7c953
commit 8d4dc7916d
10 changed files with 117 additions and 25 deletions

View File

@ -54,10 +54,10 @@ public class SharedApi {
/**
* Endpoint used to get the administrator of a project.
*
* @return a list of all project managed by the current admin user
* @return the admin of a project
*/
@GetMapping("/shared/projects/admin/{projectId}")
public Iterable<Administrator> getAdminByProjectId(
public Administrator getAdminByProjectId(
@PathVariable int projectId, @AuthenticationPrincipal Jwt principal) {
return sharedApiService.getAdminByProjectId(projectId, principal.getClaimAsString("email"));
}