1
0
Fork 0
ncpn/src/app/api/mod.rs

12 lines
212 B
Rust
Raw Normal View History

mod files;
2024-01-30 19:27:14 +01:00
mod links;
use axum::Router;
use sqlx::PgPool;
pub fn router(db: PgPool) -> Router {
Router::new()
.nest("/files", files::router(db.clone()))
.nest("/links", links::router(db))
2024-01-30 19:27:14 +01:00
}