<?php

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

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

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