fix: / redirects to /app (tenant) or /admin (central)
This commit is contained in:
+6
-1
@@ -5,7 +5,12 @@ use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
// On a tenant subdomain → redirect to the tenant panel.
|
||||
if (app(TenantManager::class)->isResolved()) {
|
||||
return redirect('/app');
|
||||
}
|
||||
// On the central domain → redirect to admin.
|
||||
return redirect('/admin');
|
||||
});
|
||||
|
||||
// PWA — manifest dinamic per tenant.
|
||||
|
||||
Reference in New Issue
Block a user