pub fn routes() -> Router {
    Router::new()
        .route("/crates/new", put(publish::handle))
        // .route("/crates/search", get(hello_world))
        .route("/crates/:crate/owners", get(owners::handle_get))
        // .route("/crates/:crate/owners", put(hello_world))
        // .route("/crates/:crate/owners", delete(hello_world))
        .route("/crates/:crate/:version/yank", delete(yank::handle_yank))
        .route("/crates/:crate/:version/unyank", put(yank::handle_unyank))
        .route("/crates/:crate/:version/download", get(download::handle))
}
// requests are already authenticated before this router
requests are already authenticated before this router
requests are already authenticated before this router
pub fn routes() -> Router {
    Router::new()
        .route("/crates/new", put(publish::handle))
        // .route("/crates/search", get(hello_world))
        .route("/crates/:crate/owners", get(owners::handle_get))
        // .route("/crates/:crate/owners", put(hello_world))
        // .route("/crates/:crate/owners", delete(hello_world))
        .route("/crates/:crate/:version/yank", delete(yank::handle_yank))
        .route("/crates/:crate/:version/unyank", put(yank::handle_unyank))
        .route("/crates/:crate/:version/download", get(download::handle))
}
pub fn routes ( ) -> Router { Router :: new ( ) . route ( " " , put ( publish :: handle ) ) // .route("/crates/search", get(hello_world)) . route ( " " , get ( owners :: handle_get ) ) // .route("/crates/:crate/owners", put(hello_world)) // .route("/crates/:crate/owners", delete(hello_world)) . route ( " " , delete ( yank :: handle_yank ) ) . route ( " " , put ( yank :: handle_unyank ) ) . route ( " " , get ( download :: handle ) ) }
requests are already authenticated before this router
requests are already authenticated before this router