58c4cb12a8
- 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
16 lines
391 B
TypeScript
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)
|
|
}
|