This commit is contained in:
Andras Bacsai
2023-06-09 15:55:21 +02:00
parent 127d42d873
commit b097842d01
45 changed files with 322 additions and 158 deletions

View File

@@ -18,6 +18,10 @@ use Illuminate\Support\Facades\Route;
Route::get('/health', function () {
return 'OK';
});
Route::get('/invitation/{uuid}', function () {
ray('Invitation', request()->route('uuid'));
return 'OK';
});
// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
// return $request->user();
// });

View File

@@ -54,7 +54,7 @@ Route::middleware(['auth'])->group(function () {
Route::get('/settings', [Controller::class, 'settings'])->name('settings.configuration');
Route::get('/settings/emails', [Controller::class, 'emails'])->name('settings.emails');
Route::get('/profile', fn () => view('profile', ['request' => request()]))->name('profile');
Route::get('/profile/team', fn () => view('team.show'))->name('team.show');
Route::get('/profile/team', [Controller::class, 'team'])->name('team.show');
Route::get('/profile/team/notifications', fn () => view('team.notifications'))->name('team.notifications');
Route::get('/command-center', fn () => view('command-center', ['servers' => Server::validated()->get()]))->name('command-center');
});

View File

@@ -37,7 +37,7 @@ Route::get('/source/github/redirect', function () {
$github_app->save();
return redirect()->route('source.github.show', ['github_app_uuid' => $github_app->uuid]);
} catch (\Exception $e) {
return general_error_handler($e);
return general_error_handler(err: $e);
}
});
@@ -53,7 +53,7 @@ Route::get('/source/github/install', function () {
}
return redirect()->route('source.github.show', ['github_app_uuid' => $github_app->uuid]);
} catch (\Exception $e) {
return general_error_handler($e);
return general_error_handler(err: $e);
}
});
Route::post('/source/github/events', function () {
@@ -166,6 +166,6 @@ Route::post('/source/github/events', function () {
}
}
} catch (\Exception $e) {
return general_error_handler($e);
return general_error_handler(err: $e);
}
});