Fix sharp in container, add admin downloads and anchor mark

- ship libvips with the runtime image so POST /api/v1/media stops failing
- admin downloads openapi.json and the style guide via session, no token
- copy rows for both API addresses
- anchor mark in the wordmark and a favicon
This commit is contained in:
Matthias G
2026-08-01 11:31:45 +02:00
parent 7582c64709
commit 58c4cb12a8
12 changed files with 191 additions and 33 deletions
+2 -8
View File
@@ -1,5 +1,5 @@
import { resolveClient } from '~/lib/api-auth'
import { openApiDocument } from '~/lib/openapi'
import { openApiResponse } from '~/lib/api-docs'
import { problem } from '~/lib/problem'
export async function GET(request: Request) {
@@ -10,12 +10,6 @@ export async function GET(request: Request) {
}
const url = new URL(request.url)
const document = openApiDocument(process.env.BETTER_AUTH_URL ?? url.origin)
return new Response(JSON.stringify(document, null, '\t'), {
headers: {
'content-type': 'application/json; charset=utf-8',
'content-disposition': 'attachment; filename="logbuch-openapi.json"',
},
})
return openApiResponse(process.env.BETTER_AUTH_URL ?? url.origin)
}