40 lines
1.6 KiB
Python
40 lines
1.6 KiB
Python
from django.urls import path
|
|
|
|
from . import ui_views, views
|
|
|
|
app_name = "lobby"
|
|
|
|
urlpatterns = [
|
|
path("ui/host", ui_views.host_screen, name="host_screen"),
|
|
path("ui/host/<path:spa_path>", ui_views.host_screen, name="host_screen_deeplink"),
|
|
path("ui/player", ui_views.player_screen, name="player_screen"),
|
|
path("sessions/create", views.create_session, name="create_session"),
|
|
path("sessions/join", views.join_session, name="join_session"),
|
|
path("sessions/<str:code>", views.session_detail, name="session_detail"),
|
|
path("sessions/<str:code>/rounds/start", views.start_round, name="start_round"),
|
|
path("sessions/<str:code>/questions/show", views.show_question, name="show_question"),
|
|
path(
|
|
"sessions/<str:code>/questions/<int:round_question_id>/lies/submit",
|
|
views.submit_lie,
|
|
name="submit_lie",
|
|
),
|
|
path(
|
|
"sessions/<str:code>/questions/<int:round_question_id>/answers/mix",
|
|
views.mix_answers,
|
|
name="mix_answers",
|
|
),
|
|
path(
|
|
"sessions/<str:code>/questions/<int:round_question_id>/guesses/submit",
|
|
views.submit_guess,
|
|
name="submit_guess",
|
|
),
|
|
path(
|
|
"sessions/<str:code>/questions/<int:round_question_id>/scores/calculate",
|
|
views.calculate_scores,
|
|
name="calculate_scores",
|
|
),
|
|
path("sessions/<str:code>/scoreboard", views.reveal_scoreboard, name="reveal_scoreboard"),
|
|
path("sessions/<str:code>/finish", views.finish_game, name="finish_game"),
|
|
path("sessions/<str:code>/rounds/next", views.start_next_round, name="start_next_round"),
|
|
]
|