server: Added /playground proxy
This commit is contained in:
@@ -2,6 +2,7 @@ const fs = require("fs")
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
graphqlEndpoint: "http://127.0.0.1:17000/graphql",
|
graphqlEndpoint: "http://127.0.0.1:17000/graphql",
|
||||||
|
playgroundEndpoint: "http://127.0.0.1:17000/playground",
|
||||||
port: 8080,
|
port: 8080,
|
||||||
root: "http://localhost:8080",
|
root: "http://localhost:8080",
|
||||||
auth0: {
|
auth0: {
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ app.use("/auth", require("./routes/auth"))
|
|||||||
|
|
||||||
// API Proxy
|
// API Proxy
|
||||||
app.use("/graphql", require("./routes/graphql"))
|
app.use("/graphql", require("./routes/graphql"))
|
||||||
|
app.use("/playground", proxy(config.playgroundEndpoint))
|
||||||
|
|
||||||
// Page routes
|
// Page routes
|
||||||
app.use("/story/", require("./routes/story"))
|
app.use("/story/", require("./routes/story"))
|
||||||
|
|||||||
Reference in New Issue
Block a user