summaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorJonathan Vingiano <jvingiano@gmail.com>2013-01-17 15:34:15 -0500
committerJonathan Vingiano <jvingiano@gmail.com>2013-01-17 15:34:15 -0500
commite53a355ae0425c1d5f5a485d2748c692f1131024 (patch)
tree5f56678da6e7ad2a52f35a0ce70e8ce89c728fb1 /routes
waiting2init
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js8
-rw-r--r--routes/login.js8
-rw-r--r--routes/user.js8
3 files changed, 24 insertions, 0 deletions
diff --git a/routes/index.js b/routes/index.js
new file mode 100644
index 0000000..0bf1fed
--- /dev/null
+++ b/routes/index.js
@@ -0,0 +1,8 @@
+
+/*
+ * GET home page.
+ */
+
+exports.index = function(req, res){
+ res.render('index', { title: 'How Long Can You Wait?', currentUser: req.user });
+};
diff --git a/routes/login.js b/routes/login.js
new file mode 100644
index 0000000..bb7888c
--- /dev/null
+++ b/routes/login.js
@@ -0,0 +1,8 @@
+
+/*
+ * POST authentication path.
+ */
+
+exports.login = function(req, res){
+ res.send("respond with a resource");
+};
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