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