mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
1
apiserver/README.md
Normal file
1
apiserver/README.md
Normal file
@@ -0,0 +1 @@
|
||||
# API SERVER
|
||||
@@ -2,6 +2,8 @@
|
||||
from django.contrib.auth import get_user
|
||||
|
||||
from typing import Any, Dict, Optional
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
# Third-Party Imports
|
||||
from asgiref.sync import sync_to_async
|
||||
@@ -12,6 +14,7 @@ from strawberry.types import ExecutionResult
|
||||
from strawberry.types.execution import ExecutionContext
|
||||
|
||||
|
||||
@method_decorator(csrf_exempt, name="dispatch")
|
||||
class CustomGraphQLView(AsyncGraphQLView):
|
||||
async def get_context(self, request, response):
|
||||
# Get the user
|
||||
|
||||
@@ -69,4 +69,4 @@ python3-saml==1.16.0
|
||||
# feature flag
|
||||
openfeature-sdk==0.7.0
|
||||
# graphql
|
||||
strawberry-graphql-django==0.47.2
|
||||
strawberry-graphql-django==0.48.0
|
||||
|
||||
@@ -1 +1 @@
|
||||
python-3.12.7
|
||||
python-3.12.6
|
||||
Reference in New Issue
Block a user