Fix/apiDocsBuild (#989)

* copy api json to docs

* copy api json to docs

* improvements

* fix web build

* mjs > js
This commit is contained in:
slothful-vassal
2026-05-12 11:28:04 +02:00
committed by GitHub
parent 0bb55ef84e
commit 611a7b5f02
11 changed files with 59 additions and 13871 deletions

12
web/openapi.config.js Normal file
View File

@@ -0,0 +1,12 @@
export function openapiOptions(version) {
return {
info: {
title: 'Wanderer API',
version,
description: 'API documentation for wanderer backend',
},
outputPath: 'static/docs/api/wanderer.openapi.json',
include: ['src/routes/api/v1/**/*.{js,ts}'],
baseSchemasPath: 'src/lib/models/api/openapi_schemas.ts',
};
}