Skip to content

Commit

Permalink
Add more build targets, fix double response issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Aug 1, 2023
1 parent ad63b2d commit 366c55a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ endif
export CGO_ENABLED = 0
BUILD_LDFLAGS=-s -w
BUILD_PKG = ./cmd/swgui
export RELEASE_TARGETS="darwin/amd64 darwin/arm64 linux/amd64 linux/arm64 windows/amd64"

-include $(DEVGO_PATH)/makefiles/main.mk
-include $(DEVGO_PATH)/makefiles/lint.mk
Expand Down
2 changes: 2 additions & 0 deletions cmd/swgui/swgui.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func main() {
hh := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
if r.URL.Path == urlToSchema {
http.ServeFile(rw, r, filePathToSchema)

return
}

swh.ServeHTTP(rw, r)
Expand Down

0 comments on commit 366c55a

Please sign in to comment.