backend/pitch_deck_generator/decks/api/urls.py

21 lines
725 B
Python
Raw Normal View History

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