Fix/apiDocsBuild (#989)
* copy api json to docs * copy api json to docs * improvements * fix web build * mjs > js
This commit is contained in:
12
web/openapi.config.js
Normal file
12
web/openapi.config.js
Normal 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',
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user