Skip to content

Commit

Permalink
reaname hook, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw committed Mar 22, 2024
1 parent 5d535fa commit acda3d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = function (sails){
}

// Clone the existing routes
// NOTE: Changing sails.config after the app lifts goes against Sails.js conventions and this code should not be reproduced.
let appRoutes = Object.assign({}, sails.config.routes);
// Remove the routes for the built-in login page..
delete appRoutes['GET /login'];
Expand All @@ -45,7 +46,7 @@ module.exports = function (sails){
'bodyParser',
'compress',
'poweredBy',
'www',
'www',// Note: This changes the conventions of Sails.js. Don't ever replicate this or use Passport.js.
'oktaSSO',
'router',
'favicon',
Expand Down

0 comments on commit acda3d7

Please sign in to comment.