fix : 오류 수정 (개발서버 정상화)

This commit is contained in:
2025-07-17 16:28:48 +09:00
parent 9a2353682e
commit 1bc9a973a2
4 changed files with 23 additions and 24 deletions

View File

@@ -46,7 +46,8 @@ class ApiController extends Controller
*/
public function debugApikey()
{
return response()->json(['message' => 'API Key 인증 성공']);
$message = 'API Key 인증 성공';
return response()->json(['message' => $message]);
}
@@ -58,9 +59,9 @@ public function debugApikey()
* @OA\RequestBody(
* required=true,
* @OA\JsonContent(
* required={"USER_ID", "USER_PWD"},
* @OA\Property(property="USER_ID", type="string", example="admin"),
* @OA\Property(property="USER_PWD", type="string", example="1234")
* required={"user_id", "user_pwd"},
* @OA\Property(property="user_id", type="string", example="test"),
* @OA\Property(property="user_pwd", type="string", example="testpass")
* )
* ),
* @OA\Response(
@@ -68,7 +69,7 @@ public function debugApikey()
* description="로그인 성공",
* @OA\JsonContent(
* @OA\Property(property="message", type="string"),
* @OA\Property(property="USER_TOKEN", type="string")
* @OA\Property(property="user_token", type="string")
* )
* ),
* @OA\Response(response=401, description="로그인 실패")
@@ -111,7 +112,7 @@ public function login(Request $request)
return response()->json([
'message' => '로그인 성공',
'USER_TOKEN' => $user->USER_TOKEN,
'user_token' => $user->remember_token,
]);
}