manuels-scolaires/manuels/urls.py

11 lines
447 B
Python
Raw Normal View History

from django.urls import path
from manuels.views import AddBookView, ListBooksView, clear_teacher_view, AddSuppliesView
urlpatterns = [
path('teacher/<uuid:pk>/add_book', AddBookView.as_view(), name='add_book'),
path('teacher/<uuid:pk>/add_supplies', AddSuppliesView.as_view(), name='add_supplies'),
2018-05-21 23:46:47 +02:00
path('teacher/<uuid:pk>', ListBooksView.as_view(), name='list_books'),
path('clear', clear_teacher_view, name='clear_teacher'),
]