2023-08-26 01:17:47 +03:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from pitch_deck_generator.decks.api.views import (
|
2023-08-26 09:53:03 +03:00
|
|
|
CreateQuestionAnswerApiView,
|
2023-08-26 17:16:07 +03:00
|
|
|
GetDeckPresentationDataApiView,
|
2023-08-26 09:53:03 +03:00
|
|
|
GetDeckQuestionApiView,
|
|
|
|
GetDeckQuestionHintApiView,
|
|
|
|
GetFirstQuestionApiView,
|
2023-08-26 01:17:47 +03:00
|
|
|
ListDecksApiView,
|
|
|
|
RetrievePitchApiView,
|
|
|
|
)
|
|
|
|
|
|
|
|
app_name = "decks"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", ListDecksApiView.as_view()),
|
|
|
|
path("<int:id>", RetrievePitchApiView.as_view()),
|
2023-08-26 17:16:07 +03:00
|
|
|
path(
|
|
|
|
"question/<int:deck_id>/presentation", GetDeckPresentationDataApiView.as_view()
|
|
|
|
),
|
2023-08-26 01:17:47 +03:00
|
|
|
path("question/<int:deck_id>", GetFirstQuestionApiView.as_view()),
|
|
|
|
path("question/<int:deck_id>/<int:question_id>", GetDeckQuestionApiView.as_view()),
|
2023-08-26 09:53:03 +03:00
|
|
|
path(
|
|
|
|
"question/<int:deck_id>/<int:question_id>/",
|
|
|
|
CreateQuestionAnswerApiView.as_view(),
|
|
|
|
),
|
2023-08-26 01:17:47 +03:00
|
|
|
path("hint/<int:deck_id>/<int:question_id>", GetDeckQuestionHintApiView.as_view()),
|
|
|
|
]
|