From dcfd60b6810082cfbbfad17a6ed3e383578842bc Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 19 Mar 2013 05:36:53 -0400 Subject: initialized express project --- routes/index.js | 8 ++++++++ routes/user.js | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 routes/index.js create mode 100644 routes/user.js (limited to 'routes') 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 -- cgit v1.2.3