Skip to content

Commit

Permalink
✨Feat : 사용자 로그인 API 추가 #2
Browse files Browse the repository at this point in the history
Related to #3
  • Loading branch information
Chestnut90 committed Nov 15, 2023
1 parent 3c392c5 commit 6ed29cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/users/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from django.urls import path

from users.views import SignUpAPIView
from users.views import SignInAPIView, SignUpAPIView

urlpatterns = [
path("signup/", view=SignUpAPIView.as_view(), name="signup"),
path("signin/", view=SignInAPIView.as_view(), name="signin"),
]
8 changes: 8 additions & 0 deletions src/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ def post(self, request):
data=UserSignUpSerializer(user).data,
status=status.HTTP_201_CREATED,
)


class SignInAPIView(APIView):
@swagger_auto_schema(
operation_summary="사용자 로그인",
)
def post(self, request):
return

0 comments on commit 6ed29cc

Please sign in to comment.