mirror of
https://github.com/spbleadersofdigtal/backend.git
synced 2024-11-29 22:23:42 +03:00
31 lines
982 B
Python
31 lines
982 B
Python
from django.urls import path
|
|
|
|
from pitch_deck_generator.decks.api.views import (
|
|
ConvertPdfToPPTXApiView,
|
|
CreateQuestionAnswerApiView,
|
|
GetDeckPresentationDataApiView,
|
|
GetDeckQuestionApiView,
|
|
GetDeckQuestionHintApiView,
|
|
GetFirstQuestionApiView,
|
|
ListDecksApiView,
|
|
RetrievePitchApiView,
|
|
)
|
|
|
|
app_name = "decks"
|
|
|
|
urlpatterns = [
|
|
path("", ListDecksApiView.as_view()),
|
|
path("<int:id>", RetrievePitchApiView.as_view()),
|
|
path("pdf-to-pptx", ConvertPdfToPPTXApiView.as_view()),
|
|
path(
|
|
"question/<int:deck_id>/presentation", GetDeckPresentationDataApiView.as_view()
|
|
),
|
|
path("question/<int:deck_id>", GetFirstQuestionApiView.as_view()),
|
|
path("question/<int:deck_id>/<int:question_id>", GetDeckQuestionApiView.as_view()),
|
|
path(
|
|
"question/<int:deck_id>/<int:question_id>/",
|
|
CreateQuestionAnswerApiView.as_view(),
|
|
),
|
|
path("hint/<int:deck_id>/<int:question_id>", GetDeckQuestionHintApiView.as_view()),
|
|
]
|