<?php

namespace App\Http\Controllers\ClaudeCode;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\View\View;

/**
 * Claude Code > 발전과정 컨트롤러
 */
class HistoryController extends Controller
{
    public function index(Request $request): View|Response
    {
        if ($request->header('HX-Request')) {
            return response('', 200)->header('HX-Redirect', route('claude-code.history.index'));
        }

        return view('claude-code.history.index');
    }
}
