Added aggregate time entries endpoint

This commit is contained in:
Constantin Graf
2024-05-06 18:38:55 +02:00
parent 1c8d895c1e
commit d5bbba2c2f
9 changed files with 597 additions and 27 deletions

View File

@@ -73,6 +73,7 @@ Route::middleware([
// Time entry routes
Route::name('time-entries.')->group(static function () {
Route::get('/organizations/{organization}/time-entries', [TimeEntryController::class, 'index'])->name('index');
Route::get('/organizations/{organization}/time-entries/aggregate', [TimeEntryController::class, 'aggregate'])->name('aggregate');
Route::post('/organizations/{organization}/time-entries', [TimeEntryController::class, 'store'])->name('store');
Route::put('/organizations/{organization}/time-entries/{timeEntry}', [TimeEntryController::class, 'update'])->name('update');
Route::delete('/organizations/{organization}/time-entries/{timeEntry}', [TimeEntryController::class, 'destroy'])->name('destroy');