We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea5a64 commit 2d2cb97Copy full SHA for 2d2cb97
src/plugins/docs/swagger.js
@@ -25,10 +25,10 @@ function swaggerOptionsFactory(spec, config) {
25
},
26
// Path to the API docs
27
apis: [
28
- path.resolve(root, 'src/**/*.js'),
29
- path.resolve(__dirname, '**/*.js'),
+ path.resolve(root, 'src/**/*.[j|t]s'),
+ path.resolve(__dirname, '**/*.[j|t]s'),
30
].concat(process.env.DOCS_SWAGGER_ROOT ? [
31
- path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.js'),
+ path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.[j|t]s'),
32
] : []),
33
};
34
}
0 commit comments