Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume WANG
gdd-sigma-poc
Commits
9f7c58bc
Commit
9f7c58bc
authored
7 years ago
by
Wilson JALLET
Browse files
Options
Downloads
Patches
Plain Diff
Grosses modifs serveur
parent
ee98fb28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server.js
+2
-1
2 additions, 1 deletion
src/server.js
with
2 additions
and
1 deletion
src/server.js
+
2
−
1
View file @
9f7c58bc
...
@@ -10,6 +10,7 @@ import schema from './graphql/schema';
...
@@ -10,6 +10,7 @@ import schema from './graphql/schema';
import
{
express
as
graphqlVoyager
}
from
'
graphql-voyager/middleware
'
;
import
{
express
as
graphqlVoyager
}
from
'
graphql-voyager/middleware
'
;
import
{
graphqlExpress
,
graphiqlExpress
}
from
'
graphql-server-express
'
;
import
{
graphqlExpress
,
graphiqlExpress
}
from
'
graphql-server-express
'
;
import
flash
from
'
connect-flash
'
;
import
flash
from
'
connect-flash
'
;
import
{
ensureLoggedIn
}
from
'
connect-ensure-login
'
;
import
passport
from
'
passport
'
;
import
passport
from
'
passport
'
;
import
LdapStrategy
from
'
passport-ldapauth
'
;
import
LdapStrategy
from
'
passport-ldapauth
'
;
import
fs
from
'
fs
'
;
import
fs
from
'
fs
'
;
...
@@ -113,7 +114,7 @@ server.use('/graphql', bodyParser.json(),
...
@@ -113,7 +114,7 @@ server.use('/graphql', bodyParser.json(),
}));
}));
// GraphiQL est une console interactive pour faire des requêtes au schéma GraphQL
// 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
// GraphQL voyager
server
.
use
(
'
/voyager
'
,
graphqlVoyager
({
endpointUrl
:
'
/graphql
'
}));
server
.
use
(
'
/voyager
'
,
graphqlVoyager
({
endpointUrl
:
'
/graphql
'
}));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment