Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
the description for this gist
object QuickstartServer extends App with UserRoutes with CORSHandler {
implicit def rejectionHandler: RejectionHandler = RejectionHandler.newBuilder().handle {
case AuthorizationFailedRejection => complete(StatusCodes.Unauthorized -> None)
lazy val routes: Route = corsHandler(userRoutes)
// rest of the boilerplate here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.