Link shortener

Create a short link (no auth):

curl -X POST https://<this-host>/api/links \
  -H 'Content-Type: application/json' \
  -d '{"target": "https://example.com/some/long/url"}'

Response:

201 {"link": "https://<this-host>/a1b2c3d", "code": "a1b2c3d", "target": "..."}

Opening /<code> redirects (302) to the stored target.