mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:18:09 +03:00
BE sync
This commit is contained in:
@@ -332,7 +332,7 @@ Flow doc: [20260607-2FA-email-mobile-auth-flow.md](20260607-2FA-email-mobile-aut
|
||||
|
||||
## URL shortener
|
||||
|
||||
**Web:** [https://s.f0xx.org](https://s.f0xx.org)
|
||||
**Web:** [https://s.f0xx.org](https://s.f0xx.org) · **Admin:** […/crashes/?view=short_links](https://apps.f0xx.org/app/androidcast_project/crashes/?view=short_links) (RBAC: company owner/admin)
|
||||
|
||||
| Kind | Path | Notes |
|
||||
|------|------|--------|
|
||||
@@ -340,13 +340,15 @@ Flow doc: [20260607-2FA-email-mobile-auth-flow.md](20260607-2FA-email-mobile-aut
|
||||
| Shorten | `GET/POST /api/v1/shorten` | Bearer token required |
|
||||
| QR | `GET /api/v1/qr/{slug}.png` | PNG (`libqrencode-tools` on BE) |
|
||||
| Redirect | `GET /{slug}` | `302` → origin; `410` if expired |
|
||||
| Admin UI | `…/crashes/?view=short_links` | Mint/revoke bearers, list links (session RBAC) |
|
||||
|
||||
Spec: [specs/20100611_3_url_shortener.md](specs/20100611_3_url_shortener.md) · code: [backend/url-shortener/](../backend/url-shortener/)
|
||||
|
||||
```bash
|
||||
curl -fsS https://s.f0xx.org/api/v1/health
|
||||
# Bearer: php backend/url-shortener/scripts/seed_bearer.php (on BE after deploy)
|
||||
# Bearer: hub Short links → Mint, or php backend/url-shortener/scripts/seed_bearer.php (CLI)
|
||||
export BEARER=… BASE=https://s.f0xx.org backend/url-shortener/scripts/demo_curl.sh
|
||||
CRASHES_BASE=https://apps.f0xx.org/app/androidcast_project/crashes ./examples/crash_reporter/backend/scripts/test_short_links_api.sh
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user