pub fn router_with(cors: &Cors) -> RouterExpand description
router, with a cross-origin policy.
Every route is registered twice, with and without the trailing slash.
axum does not redirect between them, so /api/v2/pages used to fall
through to the host’s catch-all and answer a JSON client with the
CMS 404 page. Accepting both is cheaper than teaching every client
a rule it will get wrong once.