feat: authentication improvements
This commit is contained in:
@@ -139,19 +139,6 @@ module.exports = async () => {
|
||||
|
||||
app.use('/', ctrl.auth)
|
||||
|
||||
// app.use('/graphql', (req, res, next) => {
|
||||
// graphqlApollo.graphqlExpress({
|
||||
// schema: graphqlSchema,
|
||||
// context: { req, res },
|
||||
// formatError: (err) => {
|
||||
// return {
|
||||
// message: err.message
|
||||
// }
|
||||
// }
|
||||
// })(req, res, next)
|
||||
// })
|
||||
// app.use('/graphiql', graphqlApollo.graphiqlExpress({ endpointURL: '/graphql' }))
|
||||
|
||||
app.use('/', mw.auth, ctrl.common)
|
||||
|
||||
// ----------------------------------------
|
||||
|
Reference in New Issue
Block a user