Initial commit - WASL Digital Wallet

This commit is contained in:
Hamza-Ayed
2026-06-20 21:55:06 +03:00
commit 7306c47368
61 changed files with 4157 additions and 0 deletions

30
Backend/routes/api.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\AuthController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider or bootstrap/app.php.
|
*/
// Authentication and onboarding (Public, but throttled)
Route::post('/register', [AuthController::class, 'register'])
->middleware(['idempotency', 'throttle.actions:otp_request']);
Route::post('/login', [AuthController::class, 'login'])
->middleware(['throttle.actions:login']);
Route::post('/otp/verify', [AuthController::class, 'verifyOtp'])
->middleware(['throttle.actions:login']);
// Authenticated Routes
Route::middleware(['auth.jwt', 'audit'])->group(function () {
Route::post('/pin/setup', [AuthController::class, 'setupPin'])
->middleware(['idempotency']);
});

View File

@@ -0,0 +1,8 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');