From f7b3176fb94d4d73a5629c10c74327db078b6e02 Mon Sep 17 00:00:00 2001 From: jossselrempis <95125221+Josselrempis02@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:44:51 +0800 Subject: [PATCH] Update api.php --- routes/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); });