Tranquil PDS! Moved to https://tangled.org/tranquil.farm/tranquil-pds

add xrpc fallback #14

merged opened by nel.pet targeting main from [deleted fork]: main
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:h5wsnqetncv6lu2weom35lg2/sh.tangled.repo.pull/3mbktfwqddi22
+5 -1
Diff #0
+5 -1
src/lib.rs
··· 498 .route( 499 "/app.bsky.unspecced.getAgeAssuranceState", 500 get(api::age_assurance::get_age_assurance_state), 501 - ); 502 let xrpc_service = ServiceBuilder::new() 503 .layer(XrpcProxyLayer::new(state.clone())) 504 .service(xrpc_router.with_state(state.clone()));
··· 498 .route( 499 "/app.bsky.unspecced.getAgeAssuranceState", 500 get(api::age_assurance::get_age_assurance_state), 501 + ) 502 + .fallback(async || ( 503 + StatusCode::NOT_IMPLEMENTED, 504 + Json(json!({"error": "MethodNotImplemented", "message": "XRPC method not implemented"})), 505 + )); 506 let xrpc_service = ServiceBuilder::new() 507 .layer(XrpcProxyLayer::new(state.clone())) 508 .service(xrpc_router.with_state(state.clone()));

History

1 round 0 comments
sign up or login to add to the discussion
nel.pet submitted #0
1 commit
expand
97ae68a4
add xrpc fallback
expand 0 comments
pull request successfully merged