COMPONENT · IN GATEWAY
Router
Routes on path and headers
Router
The second Gateway plugin. It chooses the upstream service for each authenticated request.
| Path | Upstream |
|---|---|
/api/users/* |
User API |
/api/orders/* |
Order API |
/api/notifications/* |
Notifier |
Routes can also match on headers, for example an X-Api-Version header to send a partner to a
newer version during a migration. An unknown path returns 404. The request then goes to the
Rate limiter, which forwards it.
Edit ./docs/components/router.md to change this text.