File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ var routes = function () {
38
38
}
39
39
40
40
//Load the JavaScript file ("controller") and pass the router to it
41
- require ( '../' + fullName ) ( router ) ;
41
+ require ( fullName ) ( router ) ;
42
42
//Associate the route with the router
43
43
app . use ( baseRoute , router ) ;
44
44
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ process.on('uncaughtException', function(err) {
37
37
//*********************************************************
38
38
// Convention based route loading (saves a lot of code)
39
39
//*********************************************************
40
- routes . load ( app , '. /controllers') ;
40
+ routes . load ( app , __dirname + ' /controllers') ;
41
41
42
42
app . listen ( port , function ( err ) {
43
43
console . log ( '[%s] Listening on http://localhost:%d' , app . settings . env , port ) ;
You can’t perform that action at this time.
0 commit comments