Files
online.tbbank.gov.tm-larave…/routes/api.php

29 lines
1.0 KiB
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']);
Route::middleware(['auth:sanctum', 'banned'])->group(function () {
// Profile...
// Route::get('profile', [ProfileController::class, 'index']);
// Route::post('profile', [ProfileController::class, 'store']);
});