Something went wrong. Try again.
A lexicon-driven AppView for ATProto.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849mod admins;pub(crate) mod auth;mod backfill;mod lexicons;mod network_lexicons;mod records;mod stats;mod tap_stats;mod types;
use axum::Router;use axum::routing::{delete, get, post};
use crate::AppState;
pub fn admin_routes(_state: AppState) -> Router<AppState> { Router::new() .route( "/lexicons", post(lexicons::upload_lexicon).get(lexicons::list_lexicons), ) .route( "/lexicons/{id}", get(lexicons::get_lexicon).delete(lexicons::delete_lexicon), ) .route("/stats", get(stats::stats)) .route("/backfill", post(backfill::create_backfill)) .route("/backfill/status", get(backfill::backfill_status)) .route( "/admins", post(admins::create_admin).get(admins::list_admins), ) .route("/admins/{id}", delete(admins::delete_admin)) .route( "/records", get(records::list_records).delete(records::delete_record), ) .route( "/records/collection", delete(records::delete_collection_records), ) .route("/tap/stats", get(tap_stats::tap_stats)) .route( "/network-lexicons", post(network_lexicons::add).get(network_lexicons::list), ) .route("/network-lexicons/{nsid}", delete(network_lexicons::remove))}