# progress/urls.py

from django.urls import path
from .views import (
    SubjectProgressView,
    RecordExerciseAttemptView,
    CompleteStageView,
)

urlpatterns = [
    # آمار و وضعیت پیشرفت کاربر برای یک موضوع
    path('subject/<int:subject_id>/', SubjectProgressView.as_view(), name='subject-progress'),

    # ثبت نتیجه یک تمرین
    path('record_attempt/', RecordExerciseAttemptView.as_view(), name='record-attempt'),

    # اعلام تکمیل یک مرحله/درس
    path('complete_stage/', CompleteStageView.as_view(), name='complete-stage'),
]
