Created
April 4, 2019 15:24
-
-
Save eldermoraes/9eea8bb2dc2eaeaf5713ee0c31c03f2e 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
private void getEvent(ServerRequest serverRequest, ServerResponse serverResponse) { | |
serverRequest.context().get(MetricRegistry.class).ifPresent(reg -> reg.counter("eventCounter").inc()); | |
String eventId = serverRequest.path().param("eventId"); | |
sendResponse(serverResponse, THEDEVCONFAPI.getEvent(Integer.parseInt(eventId))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment