ft_transcendence/profiles/urls.py
2023-12-06 15:19:41 +01:00

10 lines
403 B
Python

from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import viewsets
urlpatterns = [
path("<int:pk>", viewsets.ProfileViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update'}), name="profile_page"),
#path("me", viewsets.ProfileViewSet.as_view(), name="my_profile_page"),
] + static("/static/avatars/", document_root="./avatars")