mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
hack to avoid warnings in swagger usage
This commit is contained in:
parent
c20a7e9bce
commit
b0da214ad5
1 changed files with 11 additions and 1 deletions
|
@ -355,7 +355,17 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
|
|
||||||
args.app.use(basePath, subpath);
|
args.app.use(basePath, subpath);
|
||||||
|
|
||||||
swagger.setAppHandler(subpath);
|
//hack!
|
||||||
|
var swagger_temp = swagger
|
||||||
|
swagger = swagger.createNew(subpath);
|
||||||
|
swagger.params = swagger_temp.params
|
||||||
|
swagger.queryParam = swagger_temp.queryParam
|
||||||
|
swagger.pathParam = swagger_temp.pathParam
|
||||||
|
swagger.bodyParam = swagger_temp.bodyParam
|
||||||
|
swagger.formParam = swagger_temp.formParam
|
||||||
|
swagger.headerParam = swagger_temp.headerParam
|
||||||
|
swagger.error = swagger_temp.error
|
||||||
|
//swagger.setAppHandler(subpath);
|
||||||
|
|
||||||
swagger.addModels(swaggerModels);
|
swagger.addModels(swaggerModels);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue