2018-05-21 22:04:29 +02:00
|
|
|
from django.urls import path
|
|
|
|
|
2018-06-02 17:24:29 +02:00
|
|
|
from manuels.views import AddBookView, ListBooksView, clear_teacher_view, AddSuppliesView, EditBookView, \
|
2018-06-15 23:23:59 +02:00
|
|
|
EditSuppliesView, DeleteBookView, DeleteSuppliesView, ConfirmTeacherView, isbn_api
|
2018-05-21 22:04:29 +02:00
|
|
|
|
|
|
|
urlpatterns = [
|
2018-05-22 10:13:51 +02:00
|
|
|
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'),
|
2018-05-31 19:11:01 +02:00
|
|
|
path('teacher/<uuid:teacher_pk>/book/<int:pk>', EditBookView.as_view(), name='edit_book'),
|
2018-06-02 17:24:29 +02:00
|
|
|
path('teacher/<uuid:teacher_pk>/book/<int:pk>/delete', DeleteBookView.as_view(), name='delete_book'),
|
2018-05-31 19:11:01 +02:00
|
|
|
path('teacher/<uuid:teacher_pk>/supplies/<int:pk>', EditSuppliesView.as_view(), name='edit_supplies'),
|
2018-06-02 17:24:29 +02:00
|
|
|
path('teacher/<uuid:teacher_pk>/supplies/<int:pk>/delete', DeleteSuppliesView.as_view(), name='delete_supplies'),
|
2018-06-02 17:51:53 +02:00
|
|
|
path('teacher/<uuid:pk>/confirm', ConfirmTeacherView.as_view(), name='confirm_teacher'),
|
2018-05-21 23:46:47 +02:00
|
|
|
path('clear', clear_teacher_view, name='clear_teacher'),
|
2018-06-15 23:23:59 +02:00
|
|
|
path('isbn_api/<str:isbn>', isbn_api, name='isbn_api'),
|
2018-05-21 22:04:29 +02:00
|
|
|
]
|