Skip to content

Commit 0d3a3ea

Browse files
authored
Merge pull request #96 from KunalKapadia/develop
Rename files for better navigation
2 parents a231fe0 + aa5ce11 commit 0d3a3ea

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

config/express.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import expressWinston from 'express-winston';
1010
import expressValidation from 'express-validation';
1111
import helmet from 'helmet';
1212
import winstonInstance from './winston';
13-
import routes from '../server/routes';
13+
import routes from '../server/routes/index.route';
1414
import config from './env';
1515
import APIError from '../server/helpers/APIError';
1616

File renamed without changes.

server/controllers/user.js renamed to server/controllers/user.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import User from '../models/user';
1+
import User from '../models/user.model';
22

33
/**
44
* Load user and append to req.
File renamed without changes.

server/routes/auth.js renamed to server/routes/auth.route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import express from 'express';
22
import validate from 'express-validation';
33
import expressJwt from 'express-jwt';
44
import paramValidation from '../../config/param-validation';
5-
import authCtrl from '../controllers/auth';
5+
import authCtrl from '../controllers/auth.controller';
66
import config from '../../config/env';
77

88
const router = express.Router(); // eslint-disable-line new-cap

server/routes/index.js renamed to server/routes/index.route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import express from 'express';
2-
import userRoutes from './user';
3-
import authRoutes from './auth';
2+
import userRoutes from './user.route';
3+
import authRoutes from './auth.route';
44

55
const router = express.Router(); // eslint-disable-line new-cap
66

server/routes/user.js renamed to server/routes/user.route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import express from 'express';
22
import validate from 'express-validation';
33
import paramValidation from '../../config/param-validation';
4-
import userCtrl from '../controllers/user';
4+
import userCtrl from '../controllers/user.controller';
55

66
const router = express.Router(); // eslint-disable-line new-cap
77

0 commit comments

Comments
 (0)