roles
This commit is contained in:
@@ -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();
|
||||
// });
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user