aboutsummaryrefslogtreecommitdiffstats
path: root/commands/webui.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-05 23:42:49 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-05 23:42:49 +0100
commit7e48e0a9bebed113246e7883164c5d87eb936afb (patch)
tree15b343cc65083e3b6005b4659b83a0aefb817979 /commands/webui.go
parent1d4bb7ceb0cef79d68df0bacc913b01e40e6ddd6 (diff)
downloadgit-bug-7e48e0a9bebed113246e7883164c5d87eb936afb.tar.gz
upgrade to gqlgen master, waiting for a release
Diffstat (limited to 'commands/webui.go')
-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))