use crate::state::AppState; use crate::types::types::SubSonicResponses; use axum::{Json, Router, http::StatusCode, routing::get}; pub fn system_routers() -> Router { Router::new().route( "/getOpenSubsonicExtensions", get(get_opensubsonic_extentions).post(get_opensubsonic_extentions), ) } async fn get_opensubsonic_extentions() -> (StatusCode, Json) { ( StatusCode::OK, Json(SubSonicResponses::open_subsonic_extentions()), ) }