Skip to content

Commit 58b2130

Browse files
author
Rokas Lengvenis
committed
Export passport functionality to services
1 parent 0413fd0 commit 58b2130

File tree

6 files changed

+186
-199
lines changed

6 files changed

+186
-199
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"private": true,
55
"scripts": {
66
"babel-node": "babel-node --presets env",
7-
"dev": "nodemon --exec npm run babel-node -- ./bin/www"
7+
"start": "nodemon --exec npm run babel-node -- ./bin/www"
88
},
99
"dependencies": {
10+
"babel-cli": "^6.26.0",
1011
"babel-preset-env": "^1.6.1",
1112
"bcrypt-nodejs": "^0.0.3",
1213
"body-parser": "~1.18.2",

src/controllers/auth.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jwt from 'jwt-simple'
2-
import {JWT_SECRET} from '../config/passport';
2+
import {JWT_SECRET} from '../services/passport';
33
import User from '../models/user';
44

55
const tokenForUser = (user) => {

src/routes/auth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from 'express';
2-
import passport from '../config/passport';
2+
import passport from '../services/passport';
33
import * as AuthenticationController from '../controllers/auth.controller';
44

55

src/routes/survey.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from 'express';
2-
import passport from '../config/passport';
2+
import passport from '../services/passport';
33
import * as SurveyController from '../controllers/survey.controller';
44

55

File renamed without changes.

0 commit comments

Comments
 (0)