Swap req and res in routes.js