feat: add update endpoint

This commit is contained in:
2025-04-16 15:33:13 +01:00
parent f8467ada09
commit c2e621859e
3 changed files with 127 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ $app->get('/', [HomeFrontController::class, 'home']);
$app->get('/tasks/{id}', [TaskController::class, 'getTask']);
$app->delete('/tasks/{id}', [TaskController::class, 'delete']);
$app->patch('/tasks/{id}', [TaskController::class, 'update']);
$app->get('/tasks', [TaskController::class, 'getTasks']);
$app->post('/tasks', [TaskController::class, 'addTask']);