This commit is contained in:
sdarbinyan
2026-05-08 23:35:20 +04:00
parent 539d0b7b2e
commit 76e994e757
4 changed files with 20 additions and 10 deletions

View File

@@ -3,14 +3,8 @@
export const routes: Routes = [
{
path: '',
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);
}
loadComponent: () =>
import('./pages/fastcheck-page/fastcheck-page').then((m) => m.FastcheckPage)
},
{
path: 'about',