diff options
| author | Teddy Wing | 2013-04-27 19:26:25 -0400 |
|---|---|---|
| committer | Teddy Wing | 2013-04-27 19:27:06 -0400 |
| commit | 0d45e6fce95bccb90d86846fe33c60d7acb5cd1d (patch) | |
| tree | ac111ed8b006d2f3a87313550220f49046f425f6 /routes/index.js | |
| parent | 512e8b2da71de59132a29e80d7359ac843d62f07 (diff) | |
| download | Who-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.js | 13 |
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 |
