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
4ad1b8dd
Commit
4ad1b8dd
authored
6 years ago
by
Wilson JALLET
Browse files
Options
Downloads
Patches
Plain Diff
moved adminview back to root
parent
f9513ce8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/index.js
+1
-1
1 addition, 1 deletion
src/index.js
src/server.js
+3
-1
3 additions, 1 deletion
src/server.js
with
4 additions
and
2 deletions
src/index.js
+
1
−
1
View file @
4ad1b8dd
...
...
@@ -8,7 +8,7 @@ import router from './routing/admin_router';
import
passport
from
'
passport
'
;
// setting up l'interface admin des BDD
server
.
use
(
'
/
adminview
'
,
router
);
// catches and resolves HTTP requests to paths '/adminview/*'
server
.
use
(
'
/
'
,
router
);
// catches and resolves HTTP requests to paths '/adminview/*'
// gere les requetes de login du front
server
.
post
(
'
/login
'
,
...
...
This diff is collapsed.
Click to expand it.
src/server.js
+
3
−
1
View file @
4ad1b8dd
...
...
@@ -11,8 +11,8 @@ import { express as graphqlVoyager } from 'graphql-voyager/middleware';
import
graphqlHTTP
from
'
express-graphql
'
;
// new name of 'graphql-server-express'. cf npmjs.com
import
flash
from
'
connect-flash
'
;
import
{
ensureLoggedIn
}
from
'
connect-ensure-login
'
;
import
'
./auth
'
;
import
passport
from
'
passport
'
;
import
'
./auth
'
;
import
session
from
'
express-session
'
;
import
bodyParser
from
'
body-parser
'
;
import
favicon
from
'
serve-favicon
'
;
...
...
@@ -80,6 +80,8 @@ server.use('/graphql',
let
uid
;
let
password
;
console
.
log
(
`User authenticated:
${
req
.
isAuthenticated
()}
`
);
if
(
req
.
isAuthenticated
())
{
try
{
uid
=
req
.
user
.
uid
;
...
...
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