Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-26 17:58:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e179a03379c63538fb729090eb7dce02d3d3db78
e179a033
1 parent
cbc9e221
add passport into server
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
back/src/server.js
back/src/server.js
View file @
e179a03
...
...
@@ -3,6 +3,8 @@ dotenv.config();
import
{
GraphQLServer
}
from
"graphql-yoga"
;
import
morgan
from
"morgan"
;
import
schema
from
"./schema"
;
import
"./passport"
;
import
{
authenticateJWT
}
from
"./passport"
;
const
PORT
=
process
.
env
.
PORT
;
...
...
@@ -12,5 +14,6 @@ const server = new GraphQLServer({
});
server
.
express
.
use
(
morgan
(
"dev"
));
server
.
express
.
use
(
authenticateJWT
);
server
.
start
(()
=>
console
.
log
(
`server is running : http://localhost:
${
PORT
}
`
));
...
...
Please
register
or
login
to post a comment