@open-wa/wa-automate 4.42.2 → 4.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/server.js +4 -0
- package/package.json +1 -1
package/dist/cli/server.js
CHANGED
@@ -103,6 +103,10 @@ const setupApiDocs = (cliConfig) => {
|
|
103
103
|
return res.redirect('api-docs/');
|
104
104
|
next();
|
105
105
|
}, swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(collections_1.collections["swagger"], swOptions));
|
106
|
+
/**
|
107
|
+
* Redirect to api docs if no path is specified
|
108
|
+
*/
|
109
|
+
exports.app.use('/', (req, res) => res.redirect('/api-docs'));
|
106
110
|
};
|
107
111
|
exports.setupApiDocs = setupApiDocs;
|
108
112
|
const setupSwaggerStatsMiddleware = (cliConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED