wordnik/swagger.js — pull request #28 by jimkang (2013-04-04 16:00:19+00:00)
Title: Removed discoverUrl restriction

Removed discoverUrl restriction. (swagger-node-express appears to have no equivalent restriction.)

This change enables the use of '/' as the discoveryUrl in index.html when creating SwaggerUi (which creates an instance of SwaggerApi with that option).

This in turn makes it possible to run Swagger UI on different servers with different hostnames. e.g. http://localhost:3000 vs. http://test.company.com vs. http://realsite.com.