2026-01-26 21:08:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Tenant Module Web Routes
|
|
|
|
|
*
|
|
|
|
|
* Account management and workspace routes.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-27 00:58:42 +00:00
|
|
|
use Core\Mod\Tenant\View\Modal\Web\CancelDeletion;
|
|
|
|
|
use Core\Mod\Tenant\View\Modal\Web\ConfirmDeletion;
|
|
|
|
|
use Core\Mod\Tenant\View\Modal\Web\WorkspaceHome;
|
2026-01-26 21:08:59 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Account Deletion Routes (No Auth Required)
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Token-based account deletion confirmation and cancellation.
|
|
|
|
|
| Users receive these links via email - no login required.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Route::prefix('account')->name('account.')->group(function () {
|
|
|
|
|
Route::get('/delete/{token}', ConfirmDeletion::class)
|
|
|
|
|
->name('delete.confirm');
|
|
|
|
|
|
|
|
|
|
Route::get('/delete/{token}/cancel', CancelDeletion::class)
|
|
|
|
|
->name('delete.cancel');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Workspace Invitation Routes
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Token-based workspace invitation acceptance.
|
|
|
|
|
| Users receive these links via email to join a workspace.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-27 00:58:42 +00:00
|
|
|
Route::get('/workspace/invitation/{token}', \Core\Mod\Tenant\Controllers\WorkspaceInvitationController::class)
|
2026-01-26 21:08:59 +00:00
|
|
|
->name('workspace.invitation.accept');
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Workspace Public Routes
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Workspace home page, typically accessed via subdomain.
|
|
|
|
|
| The workspace slug is resolved from subdomain middleware or route param.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Route::get('/workspace/{workspace?}', WorkspaceHome::class)
|
|
|
|
|
->name('workspace.home')
|
|
|
|
|
->where('workspace', '[a-z0-9\-]+');
|