<reponame>hckcksrl/CloneInsta<gh_stars>0
from django.urls import path

from . import views

app_name = "users"
urlpatterns = [
    path(
        "explore",
        view = views.ExploreUsers.as_view(),
        name = 'explore_users'
    ),
    path(
        "<int:user_id>/follow",
        view = views.FollowUser.as_view(),
        name = 'follow_user'
    ),
    path(
        "<int:user_id>/unfollow",
        view = views.UnFollowUser.as_view(),
        name = 'unfollow_user'        
    ),
    path(
        "<str:username>/followers",
        view = views.UserFollowers.as_view(),
        name = 'user_followrs'
    ),
    path(
        "<str:username>/following",
        view = views.UserFollowing.as_view(),
        name = 'user_following'
    ),
    path(
        "search/",
        view = views.Search.as_view(),
        name = 'user_search'
    ),
    path(
        "<str:username>",
        view = views.UserProfile.as_view(),
        name = 'user_profile'
    ),
    path(
        "<str:username>/password",
        view = views.ChangePassword.as_view(),
        name = 'change_password'        
    ),
    path(
        "login/facebook/",
        view = views.FacebookLogin.as_view(),
        name = 'facebook_login'
    )
]

from django.urls import path

from . import views

app_name = "users"
urlpatterns = [
    path(
        "explore",
        view = views.ExploreUsers.as_view(),
        name = 'explore_users'
    ),
    path(
        "<int:user_id>/follow",
        view = views.FollowUser.as_view(),
        name = 'follow_user'
    ),
    path(
        "<int:user_id>/unfollow",
        view = views.UnFollowUser.as_view(),
        name = 'unfollow_user'        
    ),
    path(
        "<str:username>/followers",
        view = views.UserFollowers.as_view(),
        name = 'user_followrs'
    ),
    path(
        "<str:username>/following",
        view = views.UserFollowing.as_view(),
        name = 'user_following'
    ),
    path(
        "search/",
        view = views.Search.as_view(),
        name = 'user_search'
    ),
    path(
        "<str:username>",
        view = views.UserProfile.as_view(),
        name = 'user_profile'
    ),
    path(
        "<str:username>/password",
        view = views.ChangePassword.as_view(),
        name = 'change_password'        
    ),
    path(
        "login/facebook/",
        view = views.FacebookLogin.as_view(),
        name = 'facebook_login'
    )
]