fix: [flow-tester] 플로우 삭제 시 AJAX 응답 처리 추가

This commit is contained in:
2025-12-05 09:31:32 +09:00
parent 690b252bf4
commit f28a51bdf9
2 changed files with 14 additions and 3 deletions

View File

@@ -101,6 +101,14 @@ public function destroy(int $id)
$flow = AdminApiFlow::findOrFail($id);
$flow->delete();
// AJAX 요청인 경우 JSON 응답 반환
if (request()->ajax() || request()->wantsJson()) {
return response()->json([
'success' => true,
'message' => '플로우가 삭제되었습니다.',
]);
}
return redirect()
->route('dev-tools.flow-tester.index')
->with('success', '플로우가 삭제되었습니다.');