From a9f7a445711592428624fec476663d354eed21fa Mon Sep 17 00:00:00 2001 From: Robin Conjour Date: Tue, 3 Jan 2023 09:09:48 +0100 Subject: [PATCH] [MIG] [16.0] graphql_demo --- graphql_demo/__manifest__.py | 4 ++-- graphql_demo/controllers/main.py | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/graphql_demo/__manifest__.py b/graphql_demo/__manifest__.py index 50755209..bbccff3d 100644 --- a/graphql_demo/__manifest__.py +++ b/graphql_demo/__manifest__.py @@ -3,7 +3,7 @@ { "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", @@ -11,5 +11,5 @@ "external_dependencies": {"python": ["graphene"]}, "development_status": "Beta", "maintainers": ["sbidoul"], - "installable": False, + "installable": True, } diff --git a/graphql_demo/controllers/main.py b/graphql_demo/controllers/main.py index a89289b4..aa75cdf7 100644 --- a/graphql_demo/controllers/main.py +++ b/graphql_demo/controllers/main.py @@ -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.