18 lines
533 B
Python

import django_eventstream
from django.urls import path, include
from deployment.views import index, create, details, deploy
urlpatterns = [
path("", index, name="deployment"),
path("create", create, name="deployment-create"),
path("<uuid:deployment_id>", details, name="deployment-details"),
path("<uuid:deployment_id>/deploy", deploy, name="deployment-launch"),
path(
"events/",
include(django_eventstream.urls),
{"channels": ["deployment"]},
name="deployment-events",
),
]