override new ageassurance route

This commit is contained in:
Charlotte Som 2026-01-21 02:52:12 +00:00
parent 1d0662f891
commit 0f584b2fed

View file

@ -26,11 +26,20 @@ export const config = ngx("", [
]),
ngx("location = /hi-res-bnuy.png", ["root /srv/www/pds.bun.how"]),
ngx("location = /", ["root /srv/www/pds.bun.how", "index hi-res-bnuy.png"]),
ngx("location = /xrpc/app.bsky.unspecced.getAgeAssuranceState", [
ngx("location = /xrpc/app.bsky.ageassurance.getState", [
"default_type application/json",
`add_header access-control-allow-headers "authorization,dpop,atproto-accept-labelers,atproto-proxy" always`,
`add_header access-control-allow-origin "*" always`,
`return 200 '{"status": "assured", "lastInitiatedAt": "2025-07-25T05:54:31.995Z"}'`
`return 200 '${JSON.stringify({
"state": {
"lastInitiatedAt": "2025-07-25T01:40:38.406Z",
"status": "assured",
"access": "full"
},
"metadata": {
"accountCreatedAt": "2024-10-17T13:55:48.833Z"
}
})}'`
]),
]),
]);