first commit

This commit is contained in:
ghassan committed 2025-12-11 07:38:56 +00:00
commit 83e28827a1
64 files changed
+11127

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\CarParkingController;
// Authentication
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:sanctum');
// Car Functions
Route::post('car/register', [CarParkingController::class, 'registerCar']);
Route::get('car/history', [CarParkingController::class, 'getCarHistory']);
// Parking Functions
Route::post('parking/entry', [CarParkingController::class, 'registerEntry']);
Route::post('parking/exit', [CarParkingController::class, 'registerExit']);
Route::get('parking/count', [CarParkingController::class, 'countCurrentParking']);