Skip to content

Commit

Permalink
use reservation controller
Browse files Browse the repository at this point in the history
  • Loading branch information
stazrouti committed Sep 19, 2024
1 parent 159bfa0 commit 40cd833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rental-car-backend/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CarController;
use App\Http\Controllers\ReservationController;

Route::get('/user', function (Request $request) {
return $request->user();
Expand All @@ -17,7 +18,7 @@
Route::put('cars/{id}', [CarController::class, 'update']);
Route::delete('cars/{id}', [CarController::class, 'destroy']);

use App\Http\Controllers\Api\ReservationController;


// API routes for reservations
Route::prefix('reservations')->group(function () {
Expand Down

0 comments on commit 40cd833

Please sign in to comment.