Skip to content

Commit

Permalink
feat: task api
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmatinasser committed Feb 22, 2024
1 parent 3df10f5 commit 762a4b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use App\Http\Controllers\AuthenticationController;
use App\Http\Controllers\TaskController;
use Illuminate\Support\Facades\Route;

Route::prefix('/auth')->group(function () {
Expand All @@ -18,6 +19,7 @@
Route::post('logout', [AuthenticationController::class, 'logout'])->name('logout');
});


Route::post('tasks/{task}/complete', [TaskController::class, 'complete'])->name('tasks.complete');
Route::apiResource('tasks', TaskController::class);
});

0 comments on commit 762a4b7

Please sign in to comment.