Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldFon authored Dec 26, 2024
1 parent 29126d2 commit 872b41a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\V1\TaskController;

/*
|--------------------------------------------------------------------------
Expand All @@ -23,5 +24,7 @@
// Keep in mind that prefix should be /api/v1.
// Add ONE line to assign 5 resource routes to TaskController
// Put one code line here below

Route::prefix('v1')->group(function(){
Route::apiResource('/tasks',TaskController::class);
});
});

0 comments on commit 872b41a

Please sign in to comment.