Skip to content

Commit

Permalink
fix: Change dir name controller to controllers
Browse files Browse the repository at this point in the history
see: #10
  • Loading branch information
sujinleeme committed Jul 1, 2018
1 parent 0e90c6a commit 507c262
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/routes/inputAudio.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const inputAudioController = require("./../controller/inputAudio.ctrl")
const inputAudioController = require("../controllers/inputAudio.ctrl")
const multipart = require("connect-multiparty")
const multipartWare = multipart()

Expand Down
10 changes: 5 additions & 5 deletions server/routes/user.js
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)

}

0 comments on commit 507c262

Please sign in to comment.