Created
November 26, 2019 16:31
-
-
Save duanebester/0fe62823385a147bcb5d49f43a7a6109 to your computer and use it in GitHub Desktop.
Main 2 - Update server routes
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
val route: Route = | |
(post & path("graphql")) { | |
entity(as[JsValue]) { requestJson => | |
GraphQLServer.endpoint(requestJson) | |
} | |
} ~ { | |
getFromResource("graphiql.html") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment