server: Added /playground proxy

This commit is contained in:
2018-10-11 19:23:27 +02:00
parent 843dc42272
commit 0c80343d3f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ const fs = require("fs")
const config = {
graphqlEndpoint: "http://127.0.0.1:17000/graphql",
playgroundEndpoint: "http://127.0.0.1:17000/playground",
port: 8080,
root: "http://localhost:8080",
auth0: {
+1
View File
@@ -68,6 +68,7 @@ app.use("/auth", require("./routes/auth"))
// API Proxy
app.use("/graphql", require("./routes/graphql"))
app.use("/playground", proxy(config.playgroundEndpoint))
// Page routes
app.use("/story/", require("./routes/story"))