<?php

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

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

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