Browse Source

server: Added /playground proxy

1.0
Gisle Aune 6 years ago
parent
commit
0c80343d3f
  1. 1
      config.js
  2. 1
      server.js

1
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: {

1
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"))

Loading…
Cancel
Save