Change routes and passport configuration for modularity