feat: [claude-code] 요금정책 PPTX 다운로드 기능 추가
- 7페이지 상세 PPTX 생성 (표지/API단가/비용비교/팀비용/상세비교/전환가이드/결론) - PricingController download 메서드 추가 - 페이지 헤더에 PPTX 다운로드 버튼 추가 - .gitignore에 public/downloads/*.pptx 예외 추가
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\View\View;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
|
||||
class PricingController extends Controller
|
||||
{
|
||||
@@ -17,4 +18,13 @@ public function index(Request $request): View|Response
|
||||
|
||||
return view('claude-code.pricing.index');
|
||||
}
|
||||
|
||||
public function download(): BinaryFileResponse
|
||||
{
|
||||
$path = public_path('downloads/claude-code-pricing.pptx');
|
||||
|
||||
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
|
||||
|
||||
return response()->download($path, 'Claude_Code_요금정책_비교분석.pptx');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user