diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-19 05:36:53 -0400 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-19 05:36:53 -0400 |
commit | dcfd60b6810082cfbbfad17a6ed3e383578842bc (patch) | |
tree | 064598c909d7463366a8de7f8e6ef717ce02fb4d /routes | |
parent | la til gitignore (diff) | |
download | Divid-dcfd60b6810082cfbbfad17a6ed3e383578842bc.tar.gz |
initialized express project
Diffstat (limited to 'routes')
-rw-r--r-- | routes/index.js | 8 | ||||
-rw-r--r-- | routes/user.js | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/routes/index.js b/routes/index.js new file mode 100644 index 0000000..f296005 --- /dev/null +++ b/routes/index.js @@ -0,0 +1,8 @@ + +/* + * GET home page. + */ + +exports.index = function(req, res){ + res.render('index', { title: 'Express' }); +};
\ No newline at end of file diff --git a/routes/user.js b/routes/user.js new file mode 100644 index 0000000..d5b34aa --- /dev/null +++ b/routes/user.js @@ -0,0 +1,8 @@ + +/* + * GET users listing. + */ + +exports.list = function(req, res){ + res.send("respond with a resource"); +};
\ No newline at end of file |