<reponame>kimbugp/ah-haven-space-sprinters
from django.urls import path

from .views import (
    UserProfileView,
    UserProfileUpdateView,
    UserProfileListView,
    FollowersAPIView,
    FollowCreateDestroyAPIView,
)

urlpatterns = [
    path(
        '<username>',
        UserProfileView.as_view(),
        name='profile-detail'),
    path(
        '<username>/edit',
        UserProfileUpdateView.as_view(),
        name='profile-update'),
    path(
        '',
        UserProfileListView.as_view(),
        name='profile-list'),
    path(
        '<username>/followers',
        FollowersAPIView.as_view(),
        name='get_followers'),
    path(
        '<username>/follow',
        FollowCreateDestroyAPIView.as_view(),
        name='follow_up'),
]

from django.urls import path

from .views import (
    UserProfileView,
    UserProfileUpdateView,
    UserProfileListView,
    FollowersAPIView,
    FollowCreateDestroyAPIView,
)

urlpatterns = [
    path(
        '<username>',
        UserProfileView.as_view(),
        name='profile-detail'),
    path(
        '<username>/edit',
        UserProfileUpdateView.as_view(),
        name='profile-update'),
    path(
        '',
        UserProfileListView.as_view(),
        name='profile-list'),
    path(
        '<username>/followers',
        FollowersAPIView.as_view(),
        name='get_followers'),
    path(
        '<username>/follow',
        FollowCreateDestroyAPIView.as_view(),
        name='follow_up'),
]