v1.4.0: Links that expire
Links can expire after a date or a number of clicks, and the API answers 410 for them. The link list now comes wrapped in an object.
v1.3.2: Redirects keep the query stringA link can carry expires_at or max_clicks now, and stummel answers 410 Gone once either is reached. Half the links people asked me to delete were for events that were over.
⚠️
GET /api/links returns { "links": [...], "next": "..." } instead of a bare array, so the list can page. Update your client before you upgrade.Added
expires_atandmax_clickson a link, in the API and the form.- Expired links answer
410 Gonewith a short page instead of404. - Paging for
GET /api/linkswithnext.
Changed
- Breaking:
GET /api/linkswraps the list inlinks. - Codes are five characters for new links; old codes keep working.
Fixed
- The click counter counted bots that only fetched the preview.
-const links: Link[] = await res.json();
+const { links, next } = await res.json() as { links: Link[]; next?: string };
subscribe
New entries and the next chapter by mail, nothing else.