Created
November 6, 2017 23:22
-
-
Save ericdcobb/0a3e7e200038e09148de52a9a0619d1c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@POST | |
@Path("/events") | |
@Timed | |
public EventResponse eventResponse(Event event) { | |
if (!verificationToken.equals(event.getToken())) { | |
throw new ForbiddenException(); | |
} | |
//Custom event processing here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment