Skip to content
Snippets Groups Projects
Commit 87f23210 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Small fixes

parent dc1717a3
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import { makeExecutableSchema } from 'graphql-tools';
const typeDefs = `
type Query {
groups: [Group]
groups: [Group]!
}
type Group {
......
......@@ -3,9 +3,7 @@
*/
import server from './server';
import colors from 'colors';
import { graphqlExpress, graphiqlExpress } from 'graphql-server-express';
import makeExecutableSchema from 'graphql-tools';
import setupLdapAuth from './ldap_auth/ldap_auth';
import setupLdapAuth from './ldap/ldap_auth.js';
import router from './admin_view/admin_router';
// setting up ldap authentication
......
......@@ -6,7 +6,6 @@ import bodyParser from 'body-parser';
import favicon from 'serve-favicon';
import morgan from 'morgan';
import path from 'path';
import ldap_auth from './ldap_auth/ldap_auth';
import schema from './graphql/schema';
import { graphqlExpress, graphiqlExpress } from 'graphql-server-express';
......@@ -30,9 +29,6 @@ server.use(favicon(path.resolve('./','assets','favicon.ico')));
// Morgan is middleware for logging requests
server.use(morgan('dev'));
// setting up ldap authentication
ldap_auth(server);
// Charge le middleware express pour GraphQL
server.use('/graphql', bodyParser.json(), graphqlExpress({schema}));
......
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