mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 17:12:08 +00:00
Added inern app integration
This commit is contained in:
@@ -18,6 +18,13 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
$middleware->trustProxies(at: '*');
|
||||
$middleware->redirectGuestsTo(function (Request $request): string {
|
||||
if ($request->isMethod('GET') && $request->is('embedded/scrum-poker')) {
|
||||
$request->session()->put('embedded_login', true);
|
||||
}
|
||||
|
||||
return route('login');
|
||||
});
|
||||
$middleware->encryptCookies(except: ['appearance', 'sidebar_state']);
|
||||
$middleware->alias([
|
||||
'room.player' => EnsureRoomParticipant::class,
|
||||
|
||||
Reference in New Issue
Block a user