diff --git a/config.js b/config.js index a9918a2..42932db 100644 --- a/config.js +++ b/config.js @@ -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: { diff --git a/server.js b/server.js index fbb6bce..7ac0642 100644 --- a/server.js +++ b/server.js @@ -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"))