use actix_web::{Responder, get};
pub mod cache;
pub mod gateway;
pub mod headers;
pub mod pipelines;
pub mod query;
pub mod registry;
pub mod response;
pub mod schema;
pub mod supabase;
use crate::data::athena_router::list_athena_router_entries;
use response::{api_ok, internal_error};
#[get("/router/registry")]
async fn athena_router_registry() -> impl Responder {
match list_athena_router_entries().await {
Ok(entries) => api_ok(entries),
Err(err) => internal_error("Failed to list router entries", err),
}
}