Add goals feature for personal goals with filters

This commit is contained in:
Gregor Vostrak
2026-10-02 12:59:44 +02:00
parent 5010a5be3a
commit 38e33b318e
83 changed files with 7702 additions and 105 deletions

View File

@@ -8,6 +8,7 @@ use App\Http\Controllers\Api\V1\ChartController;
use App\Http\Controllers\Api\V1\ClientController;
use App\Http\Controllers\Api\V1\CurrencyController;
use App\Http\Controllers\Api\V1\ExportController;
use App\Http\Controllers\Api\V1\GoalController;
use App\Http\Controllers\Api\V1\ImportController;
use App\Http\Controllers\Api\V1\InvitationController;
use App\Http\Controllers\Api\V1\MemberController;
@@ -134,6 +135,15 @@ Route::prefix('v1')->name('v1.')->group(static function (): void {
Route::delete('/reports/{report}', [ReportController::class, 'destroy'])->name('destroy');
});
// Goal routes
Route::name('goals.')->prefix('/organizations/{organization}')->group(static function (): void {
Route::get('/goals', [GoalController::class, 'index'])->name('index');
Route::get('/goals/{goal}', [GoalController::class, 'show'])->name('show');
Route::post('/goals', [GoalController::class, 'store'])->name('store');
Route::put('/goals/{goal}', [GoalController::class, 'update'])->name('update');
Route::delete('/goals/{goal}', [GoalController::class, 'destroy'])->name('destroy');
});
// Chart routes
Route::name('charts.')->prefix('/organizations/{organization}/charts')->group(static function (): void {
Route::get('/weekly-project-overview', [ChartController::class, 'weeklyProjectOverview'])->name('weekly-project-overview');