aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-03-19 05:36:53 -0400
committerDennis Eriksen <dennis.se@gmail.com>2013-03-19 05:36:53 -0400
commitdcfd60b6810082cfbbfad17a6ed3e383578842bc (patch)
tree064598c909d7463366a8de7f8e6ef717ce02fb4d /routes
parentla til gitignore (diff)
downloadDivid-dcfd60b6810082cfbbfad17a6ed3e383578842bc.tar.gz
initialized express project
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js8
-rw-r--r--routes/user.js8
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