mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
Added single task view
This commit is contained in:
@@ -51,6 +51,12 @@ app.post('/tasks', function (req, res) {
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/tasks/:id', function (req, res) {
|
||||
Tasks.findById(req.params.id).then(function (task) {
|
||||
res.send(task);
|
||||
});
|
||||
});
|
||||
|
||||
app.put('/tasks/:id', function (req, res) {
|
||||
console.log(req.body.isCompleted);
|
||||
Tasks.findById(req.params.id).then(function (task) {
|
||||
|
||||
Reference in New Issue
Block a user