1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 04:18:09 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-11 22:13:27 +02:00
parent ed23afb9e8
commit dfaf9ab24d
2 changed files with 20 additions and 7 deletions

View File

@@ -330,25 +330,26 @@ Flow doc: [20260607-2FA-email-mobile-auth-flow.md](20260607-2FA-email-mobile-aut
---
## URL shortener (preview — not deployed)
## URL shortener
**Web:** [https://s.f0xx.org](https://s.f0xx.org) (dedicated vhost; FE TLS live)
**Web:** [https://s.f0xx.org](https://s.f0xx.org) (dedicated vhost; FE TLS + BE nginx **deployed 2026-06**)
| Kind | Path | Notes |
|------|------|--------|
| Health | `GET /api/v1/health` | Stub until PHP handlers deployed |
| Shorten | `POST /api/v1/shorten` | Bearer token; see SPEC |
| Health | `GET /api/v1/health` | Returns JSON when `backend/url-shortener/public` synced to BE |
| Shorten | `POST /api/v1/shorten` | Bearer token; **501 stub** until PHP impl |
| QR | `GET /api/v1/qr/{slug}.png` | PNG |
| Redirect | `GET /{slug}` | `302` → original URL |
Spec: [specs/20100611_3_url_shortener.md](specs/20100611_3_url_shortener.md) · scaffold: [backend/url-shortener/](../backend/url-shortener/)
```bash
export BASE=https://s.f0xx.org
curl -sS "$BASE/api/v1/health"
# Full cookbook: backend/url-shortener/scripts/demo_curl.sh (needs BEARER when live)
curl -fsS https://s.f0xx.org/api/v1/health
# Full cookbook (when shorten live): backend/url-shortener/scripts/demo_curl.sh
```
**Still TODO:** sync PHP tree to BE docroot, `schema.mariadb.sql`, bearer tokens, shorten/redirect handlers.
---
## Non-HTTP services