override new ageassurance route
This commit is contained in:
parent
1d0662f891
commit
0f584b2fed
1 changed files with 11 additions and 2 deletions
13
ngx/pds.ts
13
ngx/pds.ts
|
|
@ -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"
|
||||
}
|
||||
})}'`
|
||||
]),
|
||||
]),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue