pub fn xrpc_router<S: Clone + Send + Sync + 'static>() -> Router<S>Expand description
Create a new XRPC router with the standard AT Protocol error fallback.
Mount your XRPC procedures on this router, then merge it into your app:
ⓘ
let xrpc = atrg_xrpc::xrpc_router()
.route("/xrpc/com.example.getPosts", get(get_posts))
.route("/xrpc/com.example.createPost", post(create_post));