add: profiles.all()

This commit is contained in:
2023-12-08 17:36:41 +01:00
parent 54afa8aae5
commit 0edcd97f94
6 changed files with 37 additions and 4 deletions

View File

@ -6,5 +6,6 @@ from . import viewsets
urlpatterns = [
path("<int:pk>", viewsets.ProfileViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update'}), name="profile_page"),
path("", viewsets.ProfileViewSet.as_view({'get': 'list'}), name="profiles_list"),
#path("me", viewsets.ProfileViewSet.as_view(), name="my_profile_page"),
] + static("/static/avatars/", document_root="./avatars")