@@ 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))
}()