Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Jul 24, 2021
1 parent 670bda6 commit 7f70dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ func main() {
if err != nil {
log.Fatal(err)
}
http.HandleFunc("/", hf)
http.HandleFunc("/api", hf)

h, err := repo.GQLPlaygroundHandler()
if err != nil {
log.Fatal(err)
}
http.Handle("/ui", h)
http.Handle("/api/ui", h)

if *port != -1 {
portStr = fmt.Sprintf(":%d", *port)
Expand Down

0 comments on commit 7f70dcb

Please sign in to comment.