feat: admin provider routes (list/update/delete/test) with admin middleware
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user