<?php

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

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

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