Initial working API

This commit is contained in:
2023-11-18 21:09:27 +01:00
parent 9573c3b8ff
commit 5ef8c07f30
6 changed files with 235 additions and 1 deletions

View File

@ -16,11 +16,14 @@ Including another URLconf
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import RedirectView
from graphene_django.views import GraphQLView
urlpatterns = [
path("", RedirectView.as_view(url="/tracker")),
path("tracker/", include("games.urls")),
path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True))),
]
if settings.DEBUG: