-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change dir name controller to controllers
see: #10
- Loading branch information
1 parent
0e90c6a
commit 507c262
Showing
4 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
const userController = require('./../controllers/user.ctrl') | ||
const userController = require("./../controllers/user.ctrl") | ||
|
||
module.exports = (router) => { | ||
|
||
/** | ||
* get a user | ||
*/ | ||
router | ||
.route('/user/:id') | ||
.route("/user/:id") | ||
.get(userController.getUser) | ||
|
||
/** | ||
* get a user profile | ||
*/ | ||
router | ||
.route('/user/profile/:id') | ||
.route("/user/profile/:id") | ||
.get(userController.getUserProfile) | ||
|
||
/** | ||
* adds a user | ||
*/ | ||
router | ||
.route('/user') | ||
.route("/user") | ||
.post(userController.addUser) | ||
|
||
} |