diff --git a/bin/main.go b/bin/main.go index edb73af..e8319a0 100644 --- a/bin/main.go +++ b/bin/main.go @@ -191,7 +191,7 @@ func main() { return } - // Schema + // graphql Schema schema, err := api.NewSchema(api.Config{ Mysql: api.ConfigMysql{ Host: config.GetString("mysql.host"), @@ -211,8 +211,9 @@ func main() { }) http.Handle("/api", handler.New(&handler.Config{ - Schema: &schema, - Pretty: true, + Schema: &schema, + Playground: true, + Pretty: false, })) //http.HandleFunc("/api", func(w http.ResponseWriter, r *http.Request) {