-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added redirects in the warp servers from
/swagger-ui
to `/swagger-u…
…i/` (#171) The ui only works if you go to `/swagger-ui/` with a tailing `/`. If you browse to `/swagger-ui`, you get an unhelpful blank page, due to the relative links for JS, CSS, et al files. My investigation indicates that the best way to fix this in `warp` is to manually create a redirect. So I updated the `warp` examples to have this (I am unsure if the other servers have the same problem) I considered using a regex on the full path instead of passing in both the path and tail, but I decided passing along two strings was more efficient than running a full regex every time Co-authored-by: Ken Swanson <ken.swanson@redpoll.ai>
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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