Generateurv2/backend/api/exercices/urls.py

17 lines
597 B
Python

from django.urls import path
from .views import PDF, CSV_Generator, Editor, ExerciceAPI, TagsAPI, Test, ExoModelApi, fav, getExoModelFile, getPublicList, getUserExosList
urlpatterns = [
path('exercices/', ExerciceAPI.as_view()),
path('tags/', TagsAPI.as_view()),
path('editor/', Editor.as_view()),
path('test/', Test.as_view()),
path('csv/<str:code>', CSV_Generator.as_view()),
path('pdf/', PDF.as_view()),
path('fav/', fav),
path('model/', getExoModelFile),
path('exercices/public', getPublicList),
path('exercices/user', getUserExosList),
]