backend/api/urls.py

37 lines
1.3 KiB
Python
Raw Normal View History

2022-05-20 17:14:48 +00:00
from django.urls import path
from .views import (
PhotoGroupAPIView,
PhotosAPIView,
PhotoAPIView,
AddPhotoAPIView,
AddPhotoGroupAPIView,
AutoCropPhotoAPIView,
PhotoLogsAPIView,
PhotoLogAPIView,
AddPhotoLogAPIView,
DestroyPhotoLogAPIView,
DestroyPhotoAPIView,
UpdatePhotoLogAPIView,
UpdatePhotoAPIView,
GeneratePhotoLogAPIView,
)
urlpatterns = [
#path('', PhotoGroupAPIView.as_view()),
path('photogroups/', PhotoGroupAPIView.as_view()),
path('photos/', PhotosAPIView.as_view()),
path('photo/<int:pk>/', PhotoAPIView.as_view()),
path('addphoto/', AddPhotoAPIView.as_view()),
path('addphotogroup/', AddPhotoGroupAPIView.as_view()),
path('cropphoto/<int:pk>/', AutoCropPhotoAPIView.as_view()),
path('photologs/', PhotoLogsAPIView.as_view()),
path('photolog/<int:pk>/', PhotoLogAPIView.as_view()),
path('addphotolog/', AddPhotoLogAPIView.as_view()),
path('deletephotolog/<int:pk>/', DestroyPhotoLogAPIView.as_view()),
path('deletephoto/<int:pk>/', DestroyPhotoAPIView.as_view()),
path('updatephotolog/<int:pk>/', UpdatePhotoLogAPIView.as_view()),
path('updatephoto/<int:pk>/', UpdatePhotoAPIView.as_view()),
path('generatephotolog/<int:pk>/', GeneratePhotoLogAPIView.as_view()),
]