<?php

namespace App\Http\Controllers;

use Illuminate\Http\Response;

class ApiRootController extends Controller
{
    public function denied(): Response
    {
        return response(
            '<!DOCTYPE html><html lang="id"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Akses Ditolak</title></head><body style="font-family:Arial,sans-serif;display:flex;min-height:100vh;align-items:center;justify-content:center;margin:0;background:#f5f7fa;color:#333"><main style="text-align:center"><h1>Akses Ditolak</h1><p>Gunakan endpoint API yang tersedia.</p></main></body></html>',
            403,
            ['Content-Type' => 'text/html; charset=UTF-8']
        );
    }
}
