<?php

namespace App\Http\Controllers\Api\System;

use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;

class AccessDeniedController extends Controller
{
    /** legacy route: GET /access_denied */
    public function accessDenied(): JsonResponse
    {
        return response()->json([
            'status' => false,
            'error' => 'forbidden',
            'message' => 'Access denied.',
        ], 403);
    }
}
