feat: affiliation request
This commit is contained in:
@@ -287,4 +287,8 @@ public class AffiliationService {
|
||||
public Uni<?> deleteAffiliation(long id) {
|
||||
return Panache.withTransaction(() -> repository.deleteById(id));
|
||||
}
|
||||
|
||||
public Uni<?> deleteReqAffiliation(long id) {
|
||||
return Panache.withTransaction(() -> repositoryRequest.deleteById(id));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,14 @@ public class AffiliationEndpoints {
|
||||
return service.getRequest(id);
|
||||
}
|
||||
|
||||
@DELETE
|
||||
@Path("/request/{id}")
|
||||
@RolesAllowed({"federation_admin"})
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Uni<?> getDelAffRequest(@PathParam("id") long id) {
|
||||
return service.deleteReqAffiliation(id);
|
||||
}
|
||||
|
||||
@PUT
|
||||
@Path("/request/save")
|
||||
@RolesAllowed({"federation_admin"})
|
||||
|
||||
Reference in New Issue
Block a user