docs(production): standardiserad produktionsberedskap och gap-analys
Lägger docs/production-readiness.md och siax/production-gaps.json enligt SIAX Master Definition of Done. Underlag: git-, kod- och live-evidens 2026-11-11. Nivån är evidensbaserad, inte ett leveransgodkännande.
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
/**
|
||||
* 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