aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-07 01:00:32 +0100
committerGitHub <noreply@github.com>2020-02-07 01:00:32 +0100
commit1a3cbdc4185c50a5896f84c6c7103aac9bf97105 (patch)
tree3a38fab6533b60631d2d2df31333d2c7c05535bb /commands
parentf093be96e98284580d61664adecd0a2ff8b354e4 (diff)
parent2ebf43c988c73dcd9f5471622c0d1a466f454c37 (diff)
downloadgit-bug-1a3cbdc4185c50a5896f84c6c7103aac9bf97105.tar.gz
Merge pull request #305 from MichaelMure/gomod
migrate to go modules, update gqlgen
Diffstat (limited to 'commands')
-rw-r--r--commands/webui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/webui.go b/commands/webui.go
index 2e1a1bc0..5d3d4b4a 100644
--- a/commands/webui.go
+++ b/commands/webui.go
@@ -12,7 +12,7 @@ import (
"os/signal"
"time"
- "github.com/99designs/gqlgen/handler"
+ "github.com/99designs/gqlgen/graphql/playground"
"github.com/gorilla/mux"
"github.com/phayes/freeport"
"github.com/skratchdot/open-golang/open"
@@ -57,7 +57,7 @@ func runWebUI(cmd *cobra.Command, args []string) error {
}
// Routes
- router.Path("/playground").Handler(handler.Playground("git-bug", "/graphql"))
+ router.Path("/playground").Handler(playground.Handler("git-bug", "/graphql"))
router.Path("/graphql").Handler(graphqlHandler)
router.Path("/gitfile/{hash}").Handler(newGitFileHandler(repo))
router.Path("/upload").Methods("POST").Handler(newGitUploadFileHandler(repo))