Add identity endpoint

This commit is contained in:
Jon Staab
2026-03-26 16:10:24 -07:00
parent 9da5e027a7
commit a2f9ca9688
9 changed files with 129 additions and 38 deletions
+1
View File
@@ -61,6 +61,7 @@ See [spec](spec) for more details
All routes are NIP-98 protected.
- `GET /identity` — get auth identity (`pubkey`, `is_admin`, `is_tenant`)
- `GET /tenants` — list tenants (admin)
- `POST /tenants` — create current auth pubkey as tenant
- `GET /tenants/:pubkey` — get tenant (admin or same tenant)