from django.urls import path

from users.views import ListCreateUsersAPIView, ToggleFollowUserAPIView, ListFollowersUserAPIView, ListFolloweesUserAPIView, RetrieveLoggedInUserInfoAPIView


urlpatterns = [
    path('', ListCreateUsersAPIView.as_view()),
    #path('?search=<str:search_string>/', ListCreateUsersAPIView.as_view()),
    path('toggle-follow/<int:id>/', ToggleFollowUserAPIView.as_view()),
    path('followers/', ListFollowersUserAPIView.as_view()),
    path('following/', ListFolloweesUserAPIView.as_view()),
    path('me/', RetrieveLoggedInUserInfoAPIView.as_view())
]