mirror of
https://github.com/MarcZierle/photo-log-backend.git
synced 2025-01-04 05:37:58 +00:00
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
|
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()),
|
||
|
]
|