mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(api): use content instead of spec.content for Scalar v1.49 API
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user