diff --git a/routes/api.php b/routes/api.php index 39ecc07c..0267653a 100644 --- a/routes/api.php +++ b/routes/api.php @@ -2,6 +2,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; +use App\Http\Controllers\Api\V1\TaskController; /* |-------------------------------------------------------------------------- @@ -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); + }); });