Entryway, add not_implemented endpoint to router
This commit is contained in:
parent
8a88bb3e3d
commit
1f490cd296
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ async fn main() {
|
|||
|
||||
let mut router = Router::new();
|
||||
let create_account_nsid: Nsid = "com.atproto.server.createAccount".parse::<Nsid>().expect("valid nsid");
|
||||
router = router.add_endpoint(XrpcEndpoint::not_implemented());
|
||||
router = router.add_endpoint(XrpcEndpoint::new_procedure(create_account_nsid, create_account));
|
||||
router.serve().await;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue