Newer
Older
const createGraphQLServer = require('./graphqlServer')
const api = app => {
app.use(
'/graphql',
app.locals.passport.authenticate(['bearer', 'anonymous'], {
session: false,
}),
)
server.applyMiddleware({ app })
}
module.exports = api