Skip to content

Commit

Permalink
Do not hardcode hosts for API
Browse files Browse the repository at this point in the history
  • Loading branch information
Orhideous committed Aug 8, 2022
1 parent 5f6a625 commit 4ba7da8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/webserver/server.go
Expand Up @@ -239,7 +239,6 @@ func ServeApp(cfg Config) error {
_, _ = fmt.Fprintf(os.Stderr, "Error loading swagger spec\n: %s", err)
os.Exit(1)
}
swagger.Servers = nil

// Create server
shioriServer := api.NewShioriServer(
Expand Down
2 changes: 1 addition & 1 deletion openapi.yml
Expand Up @@ -7,7 +7,7 @@ info:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: http://localhost:8080/api/v1
- url: /api/v1
description: Local server
paths:
###
Expand Down

0 comments on commit 4ba7da8

Please sign in to comment.