A matched route follows this sequence:
Create state
begin
Check request and find route
Parse POST body
App before
Route before
Middleware
Schema
Handler
Route after
App after
Send response
Route done
App done
A returned value ends the route chain. Errors switch to route and app error hooks before sending. Static files are served before the catchall. See Hook order.
Next: State →