Last active
October 25, 2018 09:33
-
-
Save extrawurst/7fbb62d0d02dac4f1055299a12868f8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/settings") | |
public class RestResource { | |
... | |
@GET | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getGlobalSettings() { | |
validate(() -> validationService.validateForGlobal(Permission.ADMIN)); | |
return Response.ok(getDTOFromGlobalSettings(globalSettingsService)).build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment