diff --git a/routes/api.php b/routes/api.php index 39ecc07c6..363e8dbb3 100644 --- a/routes/api.php +++ b/routes/api.php @@ -18,10 +18,11 @@ return $request->user(); }); -Route::group(['middleware' => 'auth:sanctum'], function() { +Route::group(['middleware' => 'auth:sanctum', 'prefix' => 'api/v1'], function() { // Task 12: Manage tasks with endpoint /api/v1/tasks/*****. // 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::apiResource('tasks', TaskController::class); });