aboutsummaryrefslogtreecommitdiffstats
path: root/routes/index.js
diff options
context:
space:
mode:
authorTeddy Wing2013-04-27 19:26:25 -0400
committerTeddy Wing2013-04-27 19:27:06 -0400
commit0d45e6fce95bccb90d86846fe33c60d7acb5cd1d (patch)
treeac111ed8b006d2f3a87313550220f49046f425f6 /routes/index.js
parent512e8b2da71de59132a29e80d7359ac843d62f07 (diff)
downloadWho-am-I-0d45e6fce95bccb90d86846fe33c60d7acb5cd1d.tar.bz2
Update routing system. Add character images endpoint
Now includes an endpoint to get character images using dummy data.
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/routes/index.js b/routes/index.js
index f296005..7d9dd59 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -1,8 +1,7 @@
-
-/*
- * GET home page.
- */
-
-exports.index = function(req, res){
- res.render('index', { title: 'Express' });
+module.exports = function(app) {
+ var index = require('./home')
+ , character_images = require('./character-images');
+
+ app.get('/', index);
+ app.get('/character-images', character_images);
}; \ No newline at end of file