updated files

This commit is contained in:
Tony Tam
2014-09-07 17:12:03 -07:00
parent 9b0aa32941
commit bdec07e8c3
11 changed files with 2748 additions and 40 deletions

View File

@@ -47,9 +47,16 @@ class SwaggerUi extends Backbone.Router
@options.url = url
@headerView.update(url)
@api = new SwaggerApi(@options)
@api.build()
@api
if url.indexOf('swagger.json') > 0
@api = new SwaggerClient(@options)
@api.build()
@api
else
@api = new SwaggerApi(@options)
@api.build()
@api
# This is bound to success handler for SwaggerApi
# so it gets called when SwaggerApi completes loading