Files
sam-manage/app/Http/Controllers/GoogleCloud/CloudApiPricingController.php
김보곤 c3284a6dca feat: [google-cloud] Google Cloud 메뉴 섹션 추가
- Workspace 정책: 계정관리, 2단계인증, 감사로그, 데이터보존
- Workspace 요금: 4티어 비교, 기능비교, 예상비용, 인상히스토리
- Cloud API 요금: Gemini 모델 단가, 추가기능, Storage, 비용시뮬레이션
- 컨트롤러 3개 + 뷰 3개 + 라우트 그룹 추가
2026-03-02 14:07:17 +09:00

31 lines
891 B
PHP

<?php
namespace App\Http\Controllers\GoogleCloud;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\View\View;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
class CloudApiPricingController extends Controller
{
public function index(Request $request): View|Response
{
if ($request->header('HX-Request')) {
return response('', 200)->header('HX-Redirect', route('google-cloud.cloud-api-pricing.index'));
}
return view('google-cloud.cloud-api-pricing.index');
}
public function download(): BinaryFileResponse
{
$path = public_path('downloads/google-cloud-api-pricing.pptx');
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
return response()->download($path, 'Google_Cloud_API_요금표.pptx');
}
}