Skip to content

Commit

Permalink
[MIG] [16.0] graphql_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Conjour committed Jan 3, 2023
1 parent 3a4af23 commit a9f7a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions graphql_demo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

{
"name": "GraphQL Demo",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rest-framework",
"depends": ["graphql_base"],
"external_dependencies": {"python": ["graphene"]},
"development_status": "Beta",
"maintainers": ["sbidoul"],
"installable": False,
"installable": True,
}
6 changes: 0 additions & 6 deletions graphql_demo/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ class GraphQLController(http.Controller, GraphQLControllerMixin):
def graphiql(self, **kwargs):
return self._handle_graphiql_request(schema.graphql_schema)

# Optional monkey patch, needed to accept application/json GraphQL
# requests. If you only need to accept GET requests or POST
# with application/x-www-form-urlencoded content,
# this is not necessary.
GraphQLControllerMixin.patch_for_json("^/graphql/demo/?$")

# The graphql route, for applications.
# Note csrf=False: you may want to apply extra security
# (such as origin restrictions) to this route.
Expand Down

0 comments on commit a9f7a44

Please sign in to comment.