<?php

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

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

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