Initial commit

This commit is contained in:
Rowan Manning
2013-09-13 16:49:19 +01:00
commit 433aecd972
10 changed files with 148 additions and 0 deletions

15
route/task.js Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
module.exports = route;
// Route definition
function route (app) {
app.express.get('/:id', function (req, res, next) {
app.webservice.task(req.params.id).get(function (err, task) {
if (err) {
return next();
}
res.send(task);
});
});
}