I want to split up my routes into different files, where one file contains all routes and the other one the corresponding actions. I currently have a solution to achieve thi
Use req.app, req.app.get('somekey')
req.app
req.app.get('somekey')
The application variable created by calling express() is set on the request and response objects.
express()
See: https://github.com/visionmedia/express/blob/76147c78a15904d4e4e469095a29d1bec9775ab6/lib/express.js#L34-L35