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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -