backend/src/api/mod.rs
Radical 9a0ebf2b2f
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
fix: use merge instead of nesting
2025-07-17 16:48:34 +02:00

16 lines
330 B
Rust

//! `/api` Contains the entire API
use std::sync::Arc;
use axum::{Router, routing::get};
use crate::AppState;
mod v1;
mod versions;
pub fn router(path: &str) -> Router<Arc<AppState>> {
Router::new()
.route(&format!("{path}/versions"), get(versions::versions))
.nest(&format!("{path}/v1"), v1::router())
}