乐园
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user