//! This module is used for anything called directly by cargo. The base URL for all the routes //! listed in this module is `/a/:key/o/:organisation/api/v1`. //! //! Generally only endpoints listed in the [Web API section of the Cargo book][cargo-book] should //! be implemented here. //! //! [cargo-book]: https://doc.rust-lang.org/cargo/reference/registries.html#web-api mod download; mod owners; mod publish; mod yank; use axum::{ body::{Body, BoxBody}, handler::{delete, get, put}, http::{Request, Response}, Router, }; use futures::future::Future; use std::convert::Infallible; // requests are already authenticated before this router pub fn routes() -> Router< impl tower::Service< Request
, Response = Response