Skip to content

Commit

Permalink
Merge pull request #95 from KunalKapadia/develop-rename
Browse files Browse the repository at this point in the history
Rename files for better navigation. Closes #92
  • Loading branch information
kunalkapadia committed Oct 16, 2016
2 parents e400dc4 + 874204b commit aa5ce11
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import expressWinston from 'express-winston';
import expressValidation from 'express-validation';
import helmet from 'helmet';
import winstonInstance from './winston';
import routes from '../server/routes';
import routes from '../server/routes/index.route';
import config from './env';
import APIError from '../server/helpers/APIError';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import User from '../models/user';
import User from '../models/user.model';

/**
* Load user and append to req.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server/routes/auth.js → server/routes/auth.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import express from 'express';
import validate from 'express-validation';
import expressJwt from 'express-jwt';
import paramValidation from '../../config/param-validation';
import authCtrl from '../controllers/auth';
import authCtrl from '../controllers/auth.controller';
import config from '../../config/env';

const router = express.Router(); // eslint-disable-line new-cap
Expand Down
4 changes: 2 additions & 2 deletions server/routes/index.js → server/routes/index.route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import express from 'express';
import userRoutes from './user';
import authRoutes from './auth';
import userRoutes from './user.route';
import authRoutes from './auth.route';

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

Expand Down
2 changes: 1 addition & 1 deletion server/routes/user.js → server/routes/user.route.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express from 'express';
import validate from 'express-validation';
import paramValidation from '../../config/param-validation';
import userCtrl from '../controllers/user';
import userCtrl from '../controllers/user.controller';

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

Expand Down

0 comments on commit aa5ce11

Please sign in to comment.