From 872b41a7ce352be3300880f003c18f7d5798ac17 Mon Sep 17 00:00:00 2001 From: Donald <154738239+DonaldFon@users.noreply.github.com> Date: Fri, 27 Dec 2024 01:36:13 +0800 Subject: [PATCH] Update api.php --- routes/api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 39ecc07c6..0267653a1 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); + }); });