changed graphql path

This commit is contained in:
Niklas 2021-08-27 21:17:04 +02:00
parent 43efc9017c
commit 1d5dbfaa1c

View File

@ -34,7 +34,7 @@ func initHttp(resolveContext context.Context, schema graphql.Schema) error {
},
})
http.HandleFunc("/graphql", func(rw http.ResponseWriter, r *http.Request) {
http.HandleFunc("/api/graphql", func(rw http.ResponseWriter, r *http.Request) {
h.ContextHandler(resolveContext, rw, r)
})