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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -