juice-shop
192 строки · 3.6 Кб
1const routes: Routes = [2{3path: 'administration',4component: AdministrationComponent,5canActivate: [AdminGuard]6},7{8path: 'accounting',9component: AccountingComponent,10canActivate: [AccountingGuard]11},12{13path: 'about',14component: AboutComponent15},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: DeliveryMethodComponent39},40{41path: 'deluxe-membership',42component: DeluxeUserComponent,43canActivate: [LoginGuard]44},45{46path: 'saved-payment-methods',47component: SavedPaymentMethodsComponent48},49{50path: 'basket',51component: BasketComponent52},53{54path: 'order-completion/:id',55component: OrderCompletionComponent56},57{58path: 'contact',59component: ContactComponent60},61{62path: 'photo-wall',63component: PhotoWallComponent64},65{66path: 'complain',67component: ComplaintComponent68},69{70path: 'chatbot',71component: ChatbotComponent72},73{74path: 'order-summary',75component: OrderSummaryComponent76},77{78path: 'order-history',79component: OrderHistoryComponent80},81{82path: 'payment/:entity',83component: PaymentComponent84},85{86path: 'wallet',87component: WalletComponent88},89{90path: 'login',91component: LoginComponent92},93{94path: 'forgot-password',95component: ForgotPasswordComponent96},97{98path: 'recycle',99component: RecycleComponent100},101{102path: 'register',103component: RegisterComponent104},105{106path: 'search',107component: SearchResultComponent108},109{110path: 'hacking-instructor',111component: SearchResultComponent112},113{114path: 'score-board',115component: ScoreBoardComponent116},117{118path: 'track-result',119component: TrackResultComponent120},121{122path: 'track-result/new',123component: TrackResultComponent,124data: {125type: 'new'126}127},128{129path: '2fa/enter',130component: TwoFactorAuthEnterComponent131},132{133path: 'privacy-security',134component: PrivacySecurityComponent,135children: [136{137path: 'privacy-policy',138component: PrivacyPolicyComponent139},140{141path: 'change-password',142component: ChangePasswordComponent143},144{145path: 'two-factor-authentication',146component: TwoFactorAuthComponent147},148{149path: 'data-export',150component: DataExportComponent151},152{153path: 'last-login-ip',154component: LastLoginIpComponent155}156]157},158{159path: 'juicy-nft',160component: NFTUnlockComponent161},162{163path: 'wallet-web3',164loadChildren: async () => await loadWeb3WalletModule()165},166{167path: 'web3-sandbox',168canActivate: [AdminGuard],169loadChildren: async () => await loadWeb3SandboxtModule()170},171{172path: 'bee-haven',173loadChildren: async () => await loadFaucetModule()174},175{176matcher: oauthMatcher,177data: { params: (window.location.href).substr(window.location.href.indexOf('#')) },178component: OAuthComponent179},180{181matcher: tokenMatcher,182component: TokenSaleComponent183},184{185path: '403',186component: ErrorPageComponent187},188{189path: '**',190component: SearchResultComponent191}192]