Fix container build for sharp, slug lookup and select fields

- build the runtime image so libvips lands next to the sharp binary
- GET /api/v1/posts/:slug finds drafts by slug for write clients
- media upload documented with project slug instead of a project id
- own select control instead of the browser default
- quieter sidebar footer, project name leads to its entries
This commit is contained in:
Matthias G
2026-08-01 11:48:48 +02:00
parent 58c4cb12a8
commit 7a594eeacf
19 changed files with 119 additions and 72 deletions
+3 -1
View File
@@ -114,11 +114,13 @@ Lädt ein Bild hoch, erzeugt WebP-Varianten und legt einen Datensatz an. Braucht
```bash
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
-F "file=@screenshot.png" \
-F "projectId=<projekt-id>" \
-F "project=trakk" \
-F "alt=Spaltenmenü mit den neuen Einträgen" \
http://localhost:4700/api/v1/media
```
`project` ist der Slug des Projekts. Bei einem projektgebundenen Token darf das Feld wegbleiben.
Grenzen: nur Bildformate, höchstens 15 MB.
### GET /api/v1/media/file/...