Coverage for website/photos/api/v2/urls.py: 100.00%

4 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2025-08-14 10:31 +0000

1from django.urls import include, path 

2 

3from photos.api.v2.views import ( 

4 AlbumDetailView, 

5 AlbumListView, 

6 LikedPhotosListView, 

7 PhotoLikeView, 

8) 

9 

10app_name = "photos" 

11 

12urlpatterns = [ 

13 path( 

14 "photos/", 

15 include( 

16 [ 

17 path("albums/", AlbumListView.as_view(), name="album-list"), 

18 path( 

19 "albums/<slug:slug>/", 

20 AlbumDetailView.as_view(), 

21 name="album-detail", 

22 ), 

23 path( 

24 "photos/<int:pk>/like/", PhotoLikeView.as_view(), name="photo-like" 

25 ), 

26 path( 

27 "photos/liked/", LikedPhotosListView.as_view(), name="liked-photos" 

28 ), 

29 ] 

30 ), 

31 ), 

32]