I have @login_required decorator that decorates a controller action. However my app is very large and has tons of routes in many different controller files. Going one by one to decorate each route seems error prone (I could easily miss one) and time consuming.
Is there a way to decorate all routes at once across the entire app?
I am moving authentication from the web server (apache) into the application level which is why I have this problem.