From d0b6cee3ea4e2c30e65c741dc852e06266701920 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 7 Jan 2023 21:40:06 +0100 Subject: [PATCH] change name of function --- src/main/java/com/covas/Resources/PublisherRessources.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/covas/Resources/PublisherRessources.java b/src/main/java/com/covas/Resources/PublisherRessources.java index ab2167a..5d08820 100644 --- a/src/main/java/com/covas/Resources/PublisherRessources.java +++ b/src/main/java/com/covas/Resources/PublisherRessources.java @@ -75,7 +75,7 @@ public class PublisherRessources { /// GET @GET @RolesAllowed("Admin") - public Response getUsers(@CookieParam("user") String userCookie, @Context SecurityContext ctx, + public Response getPublishers(@CookieParam("user") String userCookie, @Context SecurityContext ctx, @QueryParam("page") Integer page, @QueryParam("nbPages") Integer nbPages, @QueryParam("status") Short status, @QueryParam("search") String search, @@ -127,7 +127,7 @@ public class PublisherRessources { @GET @RolesAllowed("Admin") @Path("{id}") - public Response getSingleUser(@PathParam("id") String id, @CookieParam("user") String userCookie, + public Response getSinglePublisher(@PathParam("id") String id, @CookieParam("user") String userCookie, @Context SecurityContext ctx) { UUID kid = UUID.fromString(jwt.getClaim(Claims.kid)); UsersEntity user = UsersEntity.findById(kid); @@ -148,7 +148,7 @@ public class PublisherRessources { @GET @RolesAllowed("User") @Path("info") - public Response getInfoUser(@Context SecurityContext ctx, @CookieParam("user") String userCookie) { + public Response getInfoPublisher(@Context SecurityContext ctx, @CookieParam("user") String userCookie) { UUID kid = UUID.fromString(jwt.getClaim(Claims.kid)); UsersEntity user = UsersEntity.findById(kid); Response.Status status = getResponseCheck(ctx, userCookie, user);