Skip to content

Commit

Permalink
fixing routes in index
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernst committed Jan 23, 2014
1 parent 9892b48 commit 35298f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var http = require('http');
var path = require('path');
var handlebars = require('express3-handlebars')

var routes = require('./routes');
var index = require('./routes/index');
// Example route
// var user = require('./routes/user');

Expand All @@ -35,7 +35,7 @@ if ('development' == app.get('env')) {
}

// Add routes here
app.get('/', routes.index);
app.get('/', index.view);
// Example route
// app.get('/users', user.list);

Expand Down
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* GET home page.
*/

exports.index = function(req, res){
exports.view = function(req, res){
res.render('index');
};

0 comments on commit 35298f3

Please sign in to comment.