Files
FastCheck/src/app/app.routes.ts

32 lines
953 B
TypeScript
Raw Normal View History

2026-05-06 23:26:00 +04:00
import { Routes } from '@angular/router';
2026-01-19 14:09:12 +04:00
2026-01-23 00:52:04 +04:00
export const routes: Routes = [
{
path: '',
2026-05-06 23:26:00 +04:00
loadComponent: () => {
// Branch: ?id=<orderId> means legacy SBP merchant flow.
const hasLegacyId = typeof window !== 'undefined'
&& new URLSearchParams(window.location.search).has('id');
return hasLegacyId
? import('./pages/legacy-pay-page/legacy-pay-page').then((m) => m.LegacyPayPage)
: import('./pages/fastcheck-page/fastcheck-page').then((m) => m.FastcheckPage);
}
2026-01-23 00:52:04 +04:00
},
{
2026-05-06 23:26:00 +04:00
path: 'about',
loadComponent: () =>
import('./pages/about-page/about-page').then((m) => m.AboutPage)
2026-01-23 00:52:04 +04:00
},
{
2026-05-06 23:26:00 +04:00
path: 'contacts',
loadComponent: () =>
import('./pages/contacts-page/contacts-page').then((m) => m.ContactsPage)
2026-01-23 00:52:04 +04:00
},
{
2026-05-06 23:26:00 +04:00
path: 'partners',
loadComponent: () =>
import('./pages/partners-page/partners-page').then((m) => m.PartnersPage)
2026-01-23 00:52:04 +04:00
},
2026-05-06 23:26:00 +04:00
{ path: '**', redirectTo: '' }
2026-01-23 00:52:04 +04:00
];