juice-shop
187 строк · 3.5 Кб
1const routes: Routes = [
2{
3path: 'administration',
4component: AdministrationComponent,
5canActivate: [AdminGuard]
6},
7{
8path: 'accounting',
9component: AccountingComponent,
10canActivate: [AccountingGuard]
11},
12{
13path: 'about',
14component: AboutComponent
15},
16{
17path: 'address/select',
18component: AddressSelectComponent,
19canActivate: [LoginGuard]
20},
21{
22path: 'address/saved',
23component: SavedAddressComponent,
24canActivate: [LoginGuard]
25},
26{
27path: 'address/create',
28component: AddressCreateComponent,
29canActivate: [LoginGuard]
30},
31{
32path: 'address/edit/:addressId',
33component: AddressCreateComponent,
34canActivate: [LoginGuard]
35},
36{
37path: 'delivery-method',
38component: DeliveryMethodComponent
39},
40{
41path: 'deluxe-membership',
42component: DeluxeUserComponent,
43canActivate: [LoginGuard]
44},
45{
46path: 'saved-payment-methods',
47component: SavedPaymentMethodsComponent
48},
49{
50path: 'basket',
51component: BasketComponent
52},
53{
54path: 'order-completion/:id',
55component: OrderCompletionComponent
56},
57{
58path: 'contact',
59component: ContactComponent
60},
61{
62path: 'photo-wall',
63component: PhotoWallComponent
64},
65{
66path: 'complain',
67component: ComplaintComponent
68},
69{
70path: 'chatbot',
71component: ChatbotComponent
72},
73{
74path: 'order-summary',
75component: OrderSummaryComponent
76},
77{
78path: 'order-history',
79component: OrderHistoryComponent
80},
81{
82path: 'payment/:entity',
83component: PaymentComponent
84},
85{
86path: 'wallet',
87component: WalletComponent
88},
89{
90path: 'login',
91component: LoginComponent
92},
93{
94path: 'forgot-password',
95component: ForgotPasswordComponent
96},
97{
98path: 'recycle',
99component: RecycleComponent
100},
101{
102path: 'register',
103component: RegisterComponent
104},
105{
106path: 'search',
107component: SearchResultComponent
108},
109{
110path: 'hacking-instructor',
111component: SearchResultComponent
112},
113{
114path: 'track-result',
115component: TrackResultComponent
116},
117{
118path: 'track-result/new',
119component: TrackResultComponent,
120data: {
121type: 'new'
122}
123},
124{
125path: '2fa/enter',
126component: TwoFactorAuthEnterComponent
127},
128{
129path: 'privacy-security',
130component: PrivacySecurityComponent,
131children: [
132{
133path: 'privacy-policy',
134component: PrivacyPolicyComponent
135},
136{
137path: 'change-password',
138component: ChangePasswordComponent
139},
140{
141path: 'two-factor-authentication',
142component: TwoFactorAuthComponent
143},
144{
145path: 'data-export',
146component: DataExportComponent
147},
148{
149path: 'last-login-ip',
150component: LastLoginIpComponent
151}
152]
153},
154{
155path: 'juicy-nft',
156component: NFTUnlockComponent
157},
158{
159path: 'wallet-web3',
160loadChildren: async () => await loadWeb3WalletModule()
161},
162{
163path: 'web3-sandbox',
164loadChildren: async () => await loadWeb3SandboxtModule()
165},
166{
167path: 'bee-haven',
168loadChildren: async () => await loadFaucetModule()
169},
170{
171matcher: oauthMatcher,
172data: { params: (window.location.href).substr(window.location.href.indexOf('#')) },
173component: OAuthComponent
174},
175{
176matcher: tokenMatcher,
177component: TokenSaleComponent
178},
179{
180path: '403',
181component: ErrorPageComponent
182},
183{
184path: '**',
185component: SearchResultComponent
186}
187]