* copy api json to docs * copy api json to docs * improvements * fix web build * mjs > js
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
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',
|
|
};
|
|
}
|