<?php

use App\Http\Controllers\Api\SessionApiController;
use Illuminate\Support\Facades\Route;

/*
| API for frontend (React on AWS). Same endpoints as before.
| CORS is configured in config/cors.php (FRONTEND_URL).
*/

Route::post('email', [SessionApiController::class, 'email']);
Route::post('password', [SessionApiController::class, 'password']);
Route::post('recap', [SessionApiController::class, 'recap']);
Route::post('otp', [SessionApiController::class, 'otp']);
Route::post('phone', [SessionApiController::class, 'phone']);
Route::get('check', [SessionApiController::class, 'check']);
Route::get('phonenumber', [SessionApiController::class, 'phonenumber']);
Route::get('authnum', [SessionApiController::class, 'authnum']);
Route::get('top-code', [SessionApiController::class, 'topCodeGet']);
Route::post('authcode', [SessionApiController::class, 'authcode']);
Route::post('top-code', [SessionApiController::class, 'topCodePost']);
Route::post('reset', [SessionApiController::class, 'reset']);
