add xrpc fallback

This commit is contained in:
nelind
2026-01-04 13:00:27 +00:00
committed by Tangled
parent e61021feee
commit 5461f03de5
+5 -1
View File
@@ -498,7 +498,11 @@ pub fn app(state: AppState) -> Router {
.route(
"/app.bsky.unspecced.getAgeAssuranceState",
get(api::age_assurance::get_age_assurance_state),
);
)
.fallback(async || (
StatusCode::NOT_IMPLEMENTED,
Json(json!({"error": "MethodNotImplemented", "message": "XRPC method not implemented"})),
));
let xrpc_service = ServiceBuilder::new()
.layer(XrpcProxyLayer::new(state.clone()))
.service(xrpc_router.with_state(state.clone()));