Merge pull request 'Read full GraphQL body IO' (#64) from read-full-graphql-body into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: mentorenwahl/mentorenwahl#64
This commit is contained in:
commit
fc3b323a5d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ module Backend
|
||||||
post "/" do |context|
|
post "/" do |context|
|
||||||
context.response.content_type = "application/json"
|
context.response.content_type = "application/json"
|
||||||
|
|
||||||
data = GraphQLQueryData.from_json(context.request.body.not_nil!.gets.not_nil!)
|
data = GraphQLQueryData.from_json(context.request.body.not_nil!.gets_to_end.not_nil!)
|
||||||
development = {% if flag?(:development) %}
|
development = {% if flag?(:development) %}
|
||||||
context.request.query_params["development"]? == "true"
|
context.request.query_params["development"]? == "true"
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue