get_platform_dispatch

Function get_platform_dispatch 

Source
pub async fn get_platform_dispatch(
    __arg0: State<AppState>,
    req: RequestState,
    headers: HeaderMap,
    __arg3: Path<(String, String)>,
) -> Response
Expand description

GET /releases/{platform}/{*artifact}

Dispatcher used to support URLs like:

  • /releases/{platform}/{version}.json
  • /releases/{platform}/{version}.tar

Axum’s router does not allow {version}.json style patterns because that puts both a parameter and a literal in the same path segment.