20 lines
566 B
Python
20 lines
566 B
Python
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.contrib import admin
|
|
from django.http import JsonResponse
|
|
from django.urls import include, path
|
|
|
|
|
|
def health(_request):
|
|
return JsonResponse({"ok": True, "service": "weirsoe-party-protocol"})
|
|
|
|
|
|
urlpatterns = [
|
|
path("admin/", admin.site.urls),
|
|
path("accounts/", include("django.contrib.auth.urls")),
|
|
path("healthz", health, name="healthz"),
|
|
path("lobby/", include("lobby.urls")),
|
|
]
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|