Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Josselrempis02 authored Oct 22, 2024
1 parent 7313d34 commit f7b3176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

});

0 comments on commit f7b3176

Please sign in to comment.