Skip to content
Snippets Groups Projects
Commit 4d8d7b76 authored by Quentin CHEVALIER's avatar Quentin CHEVALIER
Browse files

Merge branch 'master' of gitlab.binets.fr:br/sigma-backend

parents 1b0d0c3a 9f7c58bc
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import schema from './graphql/schema';
import { express as graphqlVoyager } from 'graphql-voyager/middleware';
import { graphqlExpress, graphiqlExpress } from 'graphql-server-express';
import flash from 'connect-flash';
import { ensureLoggedIn } from 'connect-ensure-login';
import passport from 'passport';
import LdapStrategy from 'passport-ldapauth';
import fs from 'fs';
......@@ -113,7 +114,7 @@ server.use('/graphql', bodyParser.json(),
}));
// GraphiQL est une console interactive pour faire des requêtes au schéma GraphQL
server.use('/graphiql', graphiqlExpress({endpointURL: '/graphql'}));
server.use('/graphiql', ensureLoggedIn('/login'), graphiqlExpress({endpointURL: '/graphql'}));
// GraphQL voyager
server.use('/voyager', graphqlVoyager({ endpointUrl: '/graphql' }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment