from django.contrib import admin
from django.urls import path, include
from django.http import JsonResponse
from django.conf import settings


def healthz(request):
    return JsonResponse({'status': 'ok'})


urlpatterns = [
    path('healthz/', healthz),
    path('api/v1/auth/', include('apps.accounts.urls')),
    path('api/v1/', include('apps.generation.urls')),
    path('api/v1/notifications/', include('apps.notifications.urls')),
]

# Only expose Django admin in DEBUG mode
if settings.DEBUG:
    urlpatterns.insert(1, path('admin/', admin.site.urls))
