Skip to content

Instantly share code, notes, and snippets.

@ericdcobb
Created November 6, 2017 23:22
Show Gist options
  • Save ericdcobb/0a3e7e200038e09148de52a9a0619d1c to your computer and use it in GitHub Desktop.
Save ericdcobb/0a3e7e200038e09148de52a9a0619d1c to your computer and use it in GitHub Desktop.
@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