mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
Merge pull request #2421 from webzwo0i/fix-swagger
hack to avoid warnings in swagger usage
This commit is contained in:
commit
4b6df17e99
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…
Reference in a new issue