<?php

require_once __DIR__ . '/controllers/BannerController.php';

try {
    $controller = new BannerController();
    $controller->getBanners();
} catch (Exception $e) {
    error_log("API Error in banner_detail.php: " . $e->getMessage());

    http_response_code(500);
    echo json_encode([
        'success' => false,
        'message' => 'Internal server error'
    ]);
}
