fix(api): use content instead of spec.content for Scalar v1.49 API

This commit is contained in:
Siddharth Kumar Sah
2026-03-27 13:50:03 +08:00
parent 9488201806
commit 05854fd61f
-2
View File
@@ -17,9 +17,7 @@ export async function docsRoutes(app: FastifyInstance): Promise<void> {
await app.register(scalarPlugin, { await app.register(scalarPlugin, {
routePrefix: "/api/docs", routePrefix: "/api/docs",
configuration: { configuration: {
spec: {
content: specContent, content: specContent,
},
theme: "default", theme: "default",
customCss: ` customCss: `
:root { :root {