fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma strängvärde byggs med konkatenering i stället för att matcha mönstret.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* GET /api/v1/openapi.json: public OpenAPI 3.1 spec for the v1 surface.
|
||||
*
|
||||
* Generated from the Zod schema registry at request time. Cached for 5
|
||||
* minutes in shared caches.
|
||||
*/
|
||||
|
||||
import { NextResponse } from 'next/server'
|
||||
import { generateOpenApiSpec } from '@/lib/api/v1/registry'
|
||||
import { withPublicSecurityHeaders } from '@/lib/api/v1/security-headers'
|
||||
import { getCanonicalBaseUrl } from '@/lib/api/v1/base-url'
|
||||
import '@/lib/api/v1/load-routes'
|
||||
|
||||
export async function GET(_request: Request) {
|
||||
const spec = generateOpenApiSpec(getCanonicalBaseUrl())
|
||||
|
||||
return NextResponse.json(spec, {
|
||||
status: 200,
|
||||
headers: withPublicSecurityHeaders({
|
||||
'Cache-Control': 'public, max-age=300, s-maxage=300',
|
||||
}),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user