mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
playground: true
This commit is contained in:
parent
bbaf18a394
commit
9d302fd13e
|
|
@ -137,6 +137,9 @@ const resolvers = {
|
|||
match.map_details.forEach(map => validateDetailedMapInput(map))
|
||||
)
|
||||
|
||||
console.log("args", args)
|
||||
return true
|
||||
|
||||
//put tourney in db
|
||||
//put matches in db
|
||||
//update leaderboard
|
||||
|
|
|
|||
5
index.js
5
index.js
|
|
@ -2,6 +2,7 @@ require("dotenv").config()
|
|||
const { ApolloServer } = require("apollo-server-express")
|
||||
const mongoose = require("mongoose")
|
||||
const express = require("express")
|
||||
const bodyParser = require("body-parser")
|
||||
const session = require("express-session")
|
||||
const MongoStore = require("connect-mongo")(session)
|
||||
const cors = require("cors")
|
||||
|
|
@ -86,6 +87,7 @@ mongoose
|
|||
|
||||
const server = new ApolloServer({
|
||||
introspection: true,
|
||||
playground: true,
|
||||
schema,
|
||||
context: ({ req }) => {
|
||||
if (process.env.LOGGED_IN) {
|
||||
|
|
@ -124,6 +126,9 @@ const server = new ApolloServer({
|
|||
|
||||
const app = express()
|
||||
|
||||
app.use(bodyParser.json({ limit: "1mb" }))
|
||||
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }))
|
||||
|
||||
app.use(cors())
|
||||
|
||||
//https://stackoverflow.com/questions/8605720/how-to-force-ssl-https-in-express-js/31144924#31144924
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user