ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
116 stars 38 forks source link

Feature request: Only routes #81

Closed Dolu89 closed 4 months ago

Dolu89 commented 5 months ago

Like the ignore option, add a only: string[] option to only accept routes like

{
  only: ['/api/_']
}

I think it should be usable WITH ignore to only apply routes like /api and ignore /docs /swagger (default name provided by the doc)

ad-on-is commented 5 months ago

PRs are always welcome.

Also, I think the number of routes that should be shown outweights the ones that shouldn't. So this is mostly redundant, especially since the config is copy & paste, which has everything setup correctly.