Router, add bon dependency and remove default not_implemented endpoint

This commit is contained in:
Julia Lange 2025-08-28 10:52:06 -07:00
parent 8957fe74b1
commit 3ea0861d8f
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
3 changed files with 3 additions and 3 deletions

View file

@ -6,6 +6,7 @@ edition = "2024"
[dependencies]
atproto.workspace = true
axum = { version = "0.8.3", features = ["json"] }
bon = "3.6.4"
http = "1.3.1"
serde.workspace = true
serde_json.workspace = true

View file

@ -20,9 +20,7 @@ impl Default for Router {
}
impl Router {
pub fn new() -> Self {
let mut router = AxumRouter::new();
// TODO: Only add if there is at least one XRPC endpoint
router = XrpcEndpoint::not_implemented().add_to_router(router);
let router = AxumRouter::new();
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127,0,0,1)), 6702);
Router { router, addr }
}