Router, add bon dependency and remove default not_implemented endpoint
This commit is contained in:
parent
8957fe74b1
commit
3ea0861d8f
3 changed files with 3 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -1834,6 +1834,7 @@ version = "0.1.0"
|
|||
dependencies = [
|
||||
"atproto",
|
||||
"axum",
|
||||
"bon",
|
||||
"http 1.3.1",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue