Routing & middleware
A step of the Cloud application tree on Gradus, in the Serving & compute area: HTTP, workers, scaling.
Add structured routing and shared middleware for CORS, body parsing and request logging.
Usually comes after: Runnable service.
Leads to: Background workers, API gateway & versioning.
Prompt for your AI assistant
Add a structured router with route groups and shared middleware for CORS, JSON body parsing and request logging.This is https://gradus.kazet.blog/tree/cloud-application/step/routing-and-middleware as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.