aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to '')
-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