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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user