From d91cec45aa814160c70a759b517c0c715bf489f4 Mon Sep 17 00:00:00 2001 From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:13:28 +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); + }); });