pub fn from_api<B: Backend>(api: Api<B>) -> Router
Expand description
Creates an axum::Router from an Api.
ยงExamples
use stac_server::{Api, MemoryBackend, routes};
let api = Api::new(MemoryBackend::new(), "http://stac.test").unwrap();
let router = routes::from_api(api);