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/index.js Normal file
View File

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