backbone.js - how to add a route to swagger-ui -


i've been trying add route (health check) swagger-ui. haven't been able figure out going on?

i added routes object swaggerui.js:

routes: {   'health': 'health' },  health: function() {   return "ok"; } 

and index.html file in src/main/html

i added: window.swaggerui.on('route:health', function() { log('here'); });

but when navigate /health not get. has done before?

this not possible because swagger-ui raw html serves js.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -