diff --git a/backend/poker_api/__pycache__/settings.cpython-314.pyc b/backend/poker_api/__pycache__/settings.cpython-314.pyc index 7b36311..726796f 100644 Binary files a/backend/poker_api/__pycache__/settings.cpython-314.pyc and b/backend/poker_api/__pycache__/settings.cpython-314.pyc differ diff --git a/backend/poker_api/__pycache__/urls.cpython-314.pyc b/backend/poker_api/__pycache__/urls.cpython-314.pyc index ea2d947..4a0793f 100644 Binary files a/backend/poker_api/__pycache__/urls.cpython-314.pyc and b/backend/poker_api/__pycache__/urls.cpython-314.pyc differ diff --git a/backend/poker_api/settings.py b/backend/poker_api/settings.py index 82ff720..6338caa 100644 --- a/backend/poker_api/settings.py +++ b/backend/poker_api/settings.py @@ -15,6 +15,7 @@ ALLOWED_HOSTS = ['localhost', '127.0.0.1'] INSTALLED_APPS = [ 'django.contrib.contenttypes', + 'django.contrib.auth', 'django.contrib.staticfiles', 'rest_framework', 'corsheaders', diff --git a/backend/poker_api/urls.py b/backend/poker_api/urls.py index 918b8fc..e389941 100644 --- a/backend/poker_api/urls.py +++ b/backend/poker_api/urls.py @@ -1,13 +1,25 @@ from django.urls import path, include from django.conf import settings from django.conf.urls.static import static +from django.http import JsonResponse + + +def api_root(request): + return JsonResponse({ + 'message': 'Poker Card Design System API', + 'version': '1.0', + 'endpoints': { + 'projects': '/api/projects/', + 'templates': '/api/templates/', + } + }) + urlpatterns = [ - path('api/', include([ - path('', include('apps.projects.urls')), - path('', include('apps.templates.urls')), - path('', include('apps.exports.urls')), - ])), + path('', api_root), + path('api/projects/', include('apps.projects.urls')), + path('api/templates/', include('apps.templates.urls')), + path('api/', include('apps.exports.urls')), ] if settings.DEBUG: