Skip to content

Commit

Permalink
routes pluralized
Browse files Browse the repository at this point in the history
  • Loading branch information
generalgmt committed Mar 3, 2017
1 parent d39fd2b commit 2515830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/routes/todoListRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ module.exports = function(app) {
var todoList = require('../controllers/todoListController');

// todoList Routes
app.route('/task')
app.route('/tasks')
.get(todoList.list_all_tasks)
.post(todoList.create_a_task);

app.route('/task/:taskId')
app.route('/tasks/:taskId')
.get(todoList.read_a_task)
.put(todoList.update_a_task)
.delete(todoList.delete_a_task);
Expand Down

0 comments on commit 2515830

Please sign in to comment.