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 = [
|
dependencies = [
|
||||||
"atproto",
|
"atproto",
|
||||||
"axum",
|
"axum",
|
||||||
|
"bon",
|
||||||
"http 1.3.1",
|
"http 1.3.1",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ edition = "2024"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
atproto.workspace = true
|
atproto.workspace = true
|
||||||
axum = { version = "0.8.3", features = ["json"] }
|
axum = { version = "0.8.3", features = ["json"] }
|
||||||
|
bon = "3.6.4"
|
||||||
http = "1.3.1"
|
http = "1.3.1"
|
||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
serde_json.workspace = true
|
serde_json.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,7 @@ impl Default for Router {
|
||||||
}
|
}
|
||||||
impl Router {
|
impl Router {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let mut router = AxumRouter::new();
|
let router = AxumRouter::new();
|
||||||
// TODO: Only add if there is at least one XRPC endpoint
|
|
||||||
router = XrpcEndpoint::not_implemented().add_to_router(router);
|
|
||||||
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127,0,0,1)), 6702);
|
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127,0,0,1)), 6702);
|
||||||
Router { router, addr }
|
Router { router, addr }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue