chore: update
This commit is contained in:
@@ -11,8 +11,10 @@ import io.vertx.core.http.HttpServerRequest;
|
||||
import jakarta.annotation.security.RolesAllowed;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.transaction.Transactional;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.POST;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import java.util.UUID;
|
||||
|
||||
@@ -70,4 +72,10 @@ public class StaffService extends BaseService<StaffEntity> {
|
||||
.header(InternalValue.role, Role.Staff)
|
||||
.build();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/{id}")
|
||||
public Response findStaff(@PathParam("id") UUID staffId) {
|
||||
return Response.ok(StaffEntity.findById(staffId)).build();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user