chore: 관리 페이지 뷰 및 라우트 정비
- ArchivedRecordController 수정 - 각종 테이블 뷰 개선 (archived-records, boards, departments, menus, tenants) - web.php 라우트 정비
This commit is contained in:
@@ -16,20 +16,18 @@ public function __construct(
|
||||
/**
|
||||
* 아카이브 레코드 목록 조회 (batch 그룹핑)
|
||||
*/
|
||||
public function index(Request $request): JsonResponse
|
||||
public function index(Request $request): JsonResponse|\Illuminate\Http\Response
|
||||
{
|
||||
$records = $this->archivedRecordService->getArchivedRecordsBatched(
|
||||
$request->all(),
|
||||
$request->integer('per_page', 15)
|
||||
);
|
||||
|
||||
// HTMX 요청 시 HTML 반환
|
||||
// HTMX 요청 시 HTML 직접 반환
|
||||
if ($request->header('HX-Request')) {
|
||||
$html = view('archived-records.partials.table', compact('records'))->render();
|
||||
|
||||
return response()->json([
|
||||
'html' => $html,
|
||||
]);
|
||||
return response($html)->header('Content-Type', 'text/html');
|
||||
}
|
||||
|
||||
// 일반 요청 시 JSON 반환
|
||||
|
||||
Reference in New Issue
Block a user