Files
logbuch/src/app/api/v1/openapi.json/route.ts
T
Matthias G 58c4cb12a8 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
2026-08-01 11:31:45 +02:00

16 lines
391 B
TypeScript

import { resolveClient } from '~/lib/api-auth'
import { openApiResponse } from '~/lib/api-docs'
import { problem } from '~/lib/problem'
export async function GET(request: Request) {
const client = await resolveClient(request)
if (!client) {
return problem(401, 'unauthorized')
}
const url = new URL(request.url)
return openApiResponse(process.env.BETTER_AUTH_URL ?? url.origin)
}