~xenrox/10man-api

32982f18e77b8a28720aae668f51409338286125 — Thorben Günther 2 years ago df28c81
Remove playground
1 files changed, 0 insertions(+), 3 deletions(-)

M server.go
M server.go => server.go +0 -3
@@ 11,7 11,6 @@ import (
	"git.xenrox.net/~xenrox/10man-api/graph"
	"git.xenrox.net/~xenrox/10man-api/graph/generated"
	"github.com/99designs/gqlgen/graphql/handler"
	"github.com/99designs/gqlgen/graphql/playground"
)

const defaultPort = "8080"


@@ 32,10 31,8 @@ func main() {

	srv := handler.NewDefaultServer(generated.NewExecutableSchema(generated.Config{Resolvers: &graph.Resolver{}}))

	http.Handle("/", playground.Handler("GraphQL playground", "/query"))
	http.Handle("/query", srv)

	log.Printf("connect to http://localhost:%s/ for GraphQL playground", port)
	go func() {
		log.Fatal(http.ListenAndServe(":"+port, nil))
	}()