Skip to content

Commit

Permalink
Merge pull request #178 from kimheonningg/upcy-14th-backend-dev
Browse files Browse the repository at this point in the history
access 토큰 없이 특정 리폼러의 data를 email로 가져오도록 revert
  • Loading branch information
Scanf-s authored Jan 9, 2025
2 parents 00669d0 + 595495c commit 02a3191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion users/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
path("/token/refresh", UserTokenRefreshView.as_view(), name="token_refresh"),
path("/reformer", ReformerProfileView.as_view(), name="reformer"),
path(
"/reformer/<str:nickname>",
"/reformer/<str:email>",
ReformerSpecificProfileView.as_view(),
name="specific_reformer",
),
Expand Down
4 changes: 2 additions & 2 deletions users/views/reformer_view/reformer_specific_profile_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class ReformerSpecificProfileView(APIView):
AllowAny,
]

def get(self, request, nickname: str) -> Response:
def get(self, request, email: str) -> Response:
try:
user = User.objects.get(nickname=nickname)
user = User.objects.get(email=email)
reformer_profile = Reformer.objects.get(user=user)
if not reformer_profile:
raise Reformer.DoesNotExist(
Expand Down

0 comments on commit 02a3191

Please sign in to comment.