-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use default swagger-ui? #38
Comments
We could ship the default docs html (/~https://github.com/feathersjs/feathers-swagger/blob/master/example/simple/docs.html) and use that as the fallback if Basically, copy the if (typeof config.uiIndex === 'function') {
config.uiIndex(req, res);
} else if (typeof config.uiIndex === 'string') {
res.sendFile(config.uiIndex);
} else if(config.uiIndex === true) {
res.sendFile(path.join(__dirname, '..', 'docs.html'));
} else {
res.json(rootDoc);
} |
That would be great! |
Pull request welcome 😄 |
It would be nice to also allow using the default
index.html
provided withswagger-ui
instead of having to always provide our own, what do you think?A property
ui: true
could be used, or a special value for theuiIndex
property like `uiIndex: 'default'.The text was updated successfully, but these errors were encountered: