Skip to content

Commit

Permalink
hotfix(routes): Don't include MongoController by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pilsy committed Oct 22, 2013
1 parent a9fbfe6 commit 8d5d792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ var passport = require('passport');
module.exports = function( app ) {
var injector = app.get('injector');

injector.inject( function ( ExampleController, UserController, MongoController, AccountController, RoleController, PermissionController ) {
injector.inject( function ( ExampleController, UserController, /* MongoController, */ AccountController, RoleController, PermissionController ) {
app.all('/example/:action/:id?', ExampleController.attach());
app.all('/example/?:action?', ExampleController.attach());

app.all('/mongo/:action/:id?', MongoController.attach());
app.all('/mongo/?:action?', MongoController.attach());
// app.all('/mongo/:action/:id?', MongoController.attach());
// app.all('/mongo/?:action?', MongoController.attach());

// Some passport use
// app.get('/auth/facebook', passport.authenticate('facebook', {
Expand Down

0 comments on commit 8d5d792

Please sign in to comment.