Initial commit - WASL Digital Wallet
This commit is contained in:
30
Backend/routes/api.php
Normal file
30
Backend/routes/api.php
Normal 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']);
|
||||
});
|
||||
8
Backend/routes/console.php
Normal file
8
Backend/routes/console.php
Normal 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');
|
||||
Reference in New Issue
Block a user