mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[openapi] Allow subdir serving
by using relative URLs Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8e2f1f649a
commit
87732995b3
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ var (
|
|||
Version: "v1",
|
||||
},
|
||||
Servers: []*spec.Server{
|
||||
{URL: "/", Description: "Current bot instance"},
|
||||
{URL: "./", Description: "Current bot instance"},
|
||||
},
|
||||
Paths: make(spec.Paths),
|
||||
Components: &spec.Components{
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// Begin Swagger UI call region
|
||||
const ui = SwaggerUIBundle({
|
||||
urls: [{ name: 'Bot-API specification', url: '/openapi.json' }],
|
||||
urls: [{ name: 'Bot-API specification', url: 'openapi.json' }],
|
||||
"dom_id": "#swagger-ui",
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
|
|
Loading…
Reference in a new issue