native implementation with railway-routes. Knocked off middleware.js