-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ScriptSrcs to add extra scripts URLs to load
Summary: This allows importing plugins from local and external hosts. ``` r.Get("/swagger/*", httpSwagger.Handler( httpSwagger.ScriptSrc("/static/swagger-helper.js"), httpSwagger.ScriptSrc("https://unpkg.com/[email protected]/build/index.js"), httpSwagger.Plugins([]string{"DisableTryItOutWithoutServersPlugin"}, httpSwagger.URL("http://localhost:1323/swagger/doc.json"), //The url pointing to API definition )) ``` Test Plan: Updated existing tests. Added example in example/go-chi/
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters