Function vit_servicing_station_lib::v0::api_token::api_token_filter
source · pub async fn api_token_filter(
context: SharedContext
) -> impl Filter<Extract = (), Error = Rejection> + Clone
Expand description
A warp filter that checks authorization through API tokens.
The header API_TOKEN_HEADER
should be present and valid otherwise the request is rejected.