Create RedirectComponent to handle dynamic redirections and update routes for improved maintainability.

This commit is contained in:
2025-11-13 21:10:38 +01:00
parent 42786dce74
commit 19bc6fc8e3
4 changed files with 52 additions and 1 deletions
+5 -1
View File
@@ -4,9 +4,13 @@ import {AuthGuard} from './guards/auth.guard';
export const routes: Routes = [
{
path: 'worlddl',
redirectTo: 'https://www.mediafire.com/folder/zblzjurjleq6i/Altitude_servers_1.17.1',
redirectTo: 'redirect/worlddl',
pathMatch: 'full'
},
{
path: 'redirect/:type',
loadComponent: () => import('./shared-components/redirect/redirect.component').then(m => m.RedirectComponent),
},
{
path: 'login/:code',
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent),