change name of function
This commit is contained in:
parent
3485fbb646
commit
d0b6cee3ea
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user