diff --git a/src/main.rs b/src/main.rs
index f982144..e53fe50 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,12 +1,13 @@
use axum::{
extract::{FromRef, Path, Query},
- http::{StatusCode},
+ http::StatusCode,
response::{IntoResponse, Response},
- routing::{get}, Json, Router,
+ routing::get, Json, Router,
};
+use axum_extra::routing::SpaRouter;
use metrics::increment_counter;
use metrics_util::MetricKindMask;
-use metrics_exporter_prometheus::{PrometheusBuilder};
+use metrics_exporter_prometheus::PrometheusBuilder;
use serde_json::json;
use sigh::{PrivateKey, PublicKey};
use std::{net::SocketAddr, sync::Arc, time::Duration, collections::HashMap};
@@ -287,7 +288,8 @@ async fn main() {
hostname,
priv_key: config.priv_key(),
pub_key: config.pub_key(),
- });
+ })
+ .merge(SpaRouter::new("/", "static"));
let addr = SocketAddr::from(([127, 0, 0, 1], config.listen_port));
let server = axum::Server::bind(&addr)
diff --git a/static/index.html b/static/index.html
new file mode 100644
index 0000000..e18a9ed
--- /dev/null
+++ b/static/index.html
@@ -0,0 +1,72 @@
+
+
+
+ #FediBuzz Relay
+
+
+
+
+
+
+
+
+
+
+
+
#FediBuzz Relay
+
The buzzing ActivityPub relay service
+
+
+
+
+ Mastodon and many other ActivityPub-compatible services live
+ and breathe decentralization. Mastoadmins can still bring the
+ global buzz of toots into the Federated Timeline of their
+ small server by following ActivityPub relays.
+
+
+ With this service #FediBuzz
+ provides relay endpoints for you to customize. In Mastodon's
+ preferences go to:
+