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
Post a Comment