<?php
require_once '../config.php';
require_once '../../includes/Admin.php';

$admin = new Admin();

try {
    $slides = $admin->getSlides();
    
    jsonResponse([
        'success' => true,
        'slides' => $slides
    ]);
} catch (Exception $e) {
    jsonResponse([
        'success' => false,
        'message' => $e->getMessage()
    ], 500);
}
?>