Skip to content

Commit

Permalink
Merge pull request #86 from jjyyhh0208/code-review
Browse files Browse the repository at this point in the history
Fix: api key settings fixed
  • Loading branch information
jjyyhh0208 authored Oct 20, 2024
2 parents db3936d + 06d0366 commit 3c042a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions backend/worklog/profiles/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
FollowFriendView, UnfollowFriendView, UpdateBioView,
# google_callback, google_login, GoogleLogin
KakaoLoginCallback, get_token,
TestAPIKey
)


Expand Down Expand Up @@ -53,7 +52,4 @@

#그 외
path('user/get-signed-url/<path:image_path>/', get_signed_url_view, name='get_signed_url'), # s3 인증값을 받는 엔드포인트

#api key test
path('test/', TestAPIKey.as_view(), name='keytest'),
]
6 changes: 1 addition & 5 deletions backend/worklog/profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,4 @@ def get_token(request):
except jwt.ExpiredSignatureError:
return redirect(next_url)
except jwt.InvalidTokenError:
return redirect(next_url)

class TestAPIKey(APIView):
def get(self, request):
return Response({"api_key": os.getenv('OPENAI_API_KEY')})
return redirect(next_url)

0 comments on commit 3c042a2

Please sign in to comment.