update routes
This commit is contained in:
parent
ecafb3f258
commit
0ebc5b3a5c
1 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
module.exports = function(app) {
|
module.exports = function(app) {
|
||||||
var todoList = require('../controllers/todoListController');
|
//var todoList = require('../controllers/todoListController');
|
||||||
|
|
||||||
|
|
||||||
|
app.get('/tasks',(req, res) => {
|
||||||
|
res.end('Tasks is here')
|
||||||
|
});
|
||||||
|
/*
|
||||||
// todoList Routes
|
// todoList Routes
|
||||||
app.route('/tasks')
|
app.route('/tasks')
|
||||||
.get(todoList.list_all_tasks)
|
.get(todoList.list_all_tasks)
|
||||||
|
@ -13,4 +16,5 @@ module.exports = function(app) {
|
||||||
.get(todoList.read_a_task)
|
.get(todoList.read_a_task)
|
||||||
.put(todoList.update_a_task)
|
.put(todoList.update_a_task)
|
||||||
.delete(todoList.delete_a_task);
|
.delete(todoList.delete_a_task);
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue