<?php

namespace App\Controllers\Admin;

use App\Controllers\BaseController;

class AdminBaseController extends BaseController
{
    // Ensure only admins can access
    public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
    {
        parent::initController($request, $response, $logger);

        // TODO: Add Admin Auth Check here
        // if (!session()->get('is_admin')) {
        //     return redirect()->to('/admin/login');
        // }
    }
}
