Pass app to routes