Files
colio/users/urls.py

28 lines
1.1 KiB
Python

from django.urls import include, path
from .views import *
from rest_framework.routers import DefaultRouter
router = DefaultRouter(trailing_slash=True)
router.register(r"action", GithubAPIViewSet, basename="github")
app_name = 'users'
urlpatterns = [
path('refresh-token/', RefreshAPIView.as_view()),
path('join/', JoinAPIView.as_view()),
path('login/', LoginAPIView.as_view()),
path('social-login/', GoogleLoginAPIView.as_view()),
path('check/', CheckUserFieldDuplicateAPIView.as_view()),
path('portfolio-info/', SetPortofolioRequiredInfoAPIView.as_view()),
path('portfolio-info/check/', SetPortofolioRequiredInfoAPIView.as_view()),
path('teamtag/', TagUserAPIView.as_view()),
path('mypage/profile/<str:nickname>/', MyPageProfileAPIView.as_view()),
path('mypage/works/<str:nickname>/', MyPageWorkListAPIView.as_view()),
path('mypage/my-info/', MyPageMemberInfoAPIView.as_view()),
path("github/", include(router.urls)),
path("portfolio/", UserInfoAPIView.as_view()),
path("reset-password/", PasswordResetAPIView.as_view()),
]