From 06d03661fb46c722769f975d7d82b51399faa655 Mon Sep 17 00:00:00 2001 From: Youngheon Jeong <81753155+jjyyhh0208@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:08:19 +0900 Subject: [PATCH] Fix: api key settings fixed --- backend/worklog/profiles/urls.py | 4 ---- backend/worklog/profiles/views.py | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/backend/worklog/profiles/urls.py b/backend/worklog/profiles/urls.py index 39300d78..c458ca72 100644 --- a/backend/worklog/profiles/urls.py +++ b/backend/worklog/profiles/urls.py @@ -10,7 +10,6 @@ FollowFriendView, UnfollowFriendView, UpdateBioView, # google_callback, google_login, GoogleLogin KakaoLoginCallback, get_token, - TestAPIKey ) @@ -53,7 +52,4 @@ #그 외 path('user/get-signed-url//', get_signed_url_view, name='get_signed_url'), # s3 인증값을 받는 엔드포인트 - - #api key test - path('test/', TestAPIKey.as_view(), name='keytest'), ] diff --git a/backend/worklog/profiles/views.py b/backend/worklog/profiles/views.py index 69075720..c9db6cdb 100644 --- a/backend/worklog/profiles/views.py +++ b/backend/worklog/profiles/views.py @@ -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')}) \ No newline at end of file + return redirect(next_url) \ No newline at end of file