diff --git a/src/api/index.txt b/src/api/index.txt new file mode 100644 index 0000000..9ba09e4 --- /dev/null +++ b/src/api/index.txt @@ -0,0 +1,14 @@ +88 88 +88 88 ,d +88 88 88 +88,dPPYba, 8b d8 ,adPPYb,88 8b,dPPYba, ,adPPYYba, 8b,dPPYba, MM88MMM +88P' "8a `8b d8' a8" `Y88 88P' "Y8 "" `Y8 88P' `"8a 88 +88 88 `8b d8' 8b 88 88 ,adPPPPP88 88 88 88 +88 88 `8b,d8' "8a, ,d88 88 88, ,88 88 88 88, +88 88 Y88' `"8bbdP"Y8 88 `"8bbdP"Y8 88 88 "Y888 + d8' + d8' + +this is an atproto relay instance, running the hydrant (https://tangled.org/ptr.pet/hydrant) implementation. + +subscribe to the relay at: /xrpc/com.atproto.sync.subscribeRepos diff --git a/src/api/mod.rs b/src/api/mod.rs index 24abcd5..636f219 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -22,7 +22,8 @@ mod xrpc; pub async fn serve(hydrant: Hydrant, port: u16) -> miette::Result<()> { #[allow(unused_mut)] let mut app = Router::new() - .route("/health", get(|| async { "OK" })) + .route("/", get(async || include_str!("index.txt"))) + .route("/health", get(async || "OK")) .route("/stats", get(stats::get_stats)); #[cfg(feature = "indexer")] let app = app.nest("/stream", stream::router());