Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aadiaconitei authored Oct 16, 2024
1 parent 7313d34 commit bf46237
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Illuminate\Http\Request;
use App\Http\Controllers\Api\V1\TaskController;
use Illuminate\Support\Facades\Route;

/*
Expand All @@ -18,10 +19,12 @@
return $request->user();
});

Route::group(['middleware' => 'auth:sanctum'], function() {
Route::group(['middleware' => 'auth:sanctum', 'prefix'=>'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);


});

0 comments on commit bf46237

Please sign in to comment.