23 lines
800 B
PHP
23 lines
800 B
PHP
<?php
|
|
|
|
use App\Modules\ApiAuth\Controllers\ApiAuthController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "api" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
// Auth...
|
|
Route::post('auth/register', [ApiAuthController::class, 'register']);
|
|
Route::post('auth/login', [ApiAuthController::class, 'login']);
|
|
Route::post('auth/verify', [ApiAuthController::class, 'verify']);
|
|
Route::middleware('auth:sanctum')
|
|
->post('auth/delete-user', [ApiAuthController::class, 'delete']);
|