SOLUTION: Add custom routes in swagger and change swagger settings based on swagger, with Strapi 4 default overwrite

this fork also seems to work for adding your custom api routes into the strapi documentation [Bug]: Documentation for custom routes [documentation plugin] · Issue #844 · strapi/documentation · GitHub