feat: admin provider routes (list/update/delete/test) with admin middleware

This commit is contained in:
2026-03-16 03:34:54 +01:00
parent 46333853d2
commit 87f94fcc51
3 changed files with 380 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ use crate::state::AppState;
use axum::Router;
pub mod admin;
pub mod admin_providers;
pub mod auth;
pub mod channels;
pub mod config;
@@ -17,6 +18,7 @@ pub mod library;
pub fn api_v1_router() -> Router<AppState> {
Router::new()
.nest("/admin", admin::router())
.nest("/admin/providers", admin_providers::router())
.nest("/auth", auth::router())
.nest("/channels", channels::router())
.nest("/config", config::router())