juice-shop

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

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.