mirror of
https://github.com/KeygraphHQ/juice-shop.git
synced 2026-11-09 10:49:38 -10:00
191 lines
3.6 KiB
TypeScript
191 lines
3.6 KiB
TypeScript
const routes: Routes = [
|
|
{
|
|
path: 'administration',
|
|
component: AdministrationComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'accounting',
|
|
component: AccountingComponent,
|
|
canActivate: [AccountingGuard]
|
|
},
|
|
{
|
|
path: 'about',
|
|
component: AboutComponent
|
|
},
|
|
{
|
|
path: 'address/select',
|
|
component: AddressSelectComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'address/saved',
|
|
component: SavedAddressComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'address/create',
|
|
component: AddressCreateComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'address/edit/:addressId',
|
|
component: AddressCreateComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'delivery-method',
|
|
component: DeliveryMethodComponent
|
|
},
|
|
{
|
|
path: 'deluxe-membership',
|
|
component: DeluxeUserComponent,
|
|
canActivate: [LoginGuard]
|
|
},
|
|
{
|
|
path: 'saved-payment-methods',
|
|
component: SavedPaymentMethodsComponent
|
|
},
|
|
{
|
|
path: 'basket',
|
|
component: BasketComponent
|
|
},
|
|
{
|
|
path: 'order-completion/:id',
|
|
component: OrderCompletionComponent
|
|
},
|
|
{
|
|
path: 'contact',
|
|
component: ContactComponent
|
|
},
|
|
{
|
|
path: 'photo-wall',
|
|
component: PhotoWallComponent
|
|
},
|
|
{
|
|
path: 'complain',
|
|
component: ComplaintComponent
|
|
},
|
|
{
|
|
path: 'chatbot',
|
|
component: ChatbotComponent
|
|
},
|
|
{
|
|
path: 'order-summary',
|
|
component: OrderSummaryComponent
|
|
},
|
|
{
|
|
path: 'order-history',
|
|
component: OrderHistoryComponent
|
|
},
|
|
{
|
|
path: 'payment/:entity',
|
|
component: PaymentComponent
|
|
},
|
|
{
|
|
path: 'wallet',
|
|
component: WalletComponent
|
|
},
|
|
{
|
|
path: 'login',
|
|
component: LoginComponent
|
|
},
|
|
{
|
|
path: 'forgot-password',
|
|
component: ForgotPasswordComponent
|
|
},
|
|
{
|
|
path: 'recycle',
|
|
component: RecycleComponent
|
|
},
|
|
{
|
|
path: 'register',
|
|
component: RegisterComponent
|
|
},
|
|
{
|
|
path: 'search',
|
|
component: SearchResultComponent
|
|
},
|
|
{
|
|
path: 'hacking-instructor',
|
|
component: SearchResultComponent
|
|
},
|
|
{
|
|
path: 'score-board',
|
|
component: ScoreBoardComponent
|
|
},
|
|
{
|
|
path: 'track-result',
|
|
component: TrackResultComponent
|
|
},
|
|
{
|
|
path: 'track-result/new',
|
|
component: TrackResultComponent,
|
|
data: {
|
|
type: 'new'
|
|
}
|
|
},
|
|
{
|
|
path: '2fa/enter',
|
|
component: TwoFactorAuthEnterComponent
|
|
},
|
|
{
|
|
path: 'privacy-security',
|
|
component: PrivacySecurityComponent,
|
|
children: [
|
|
{
|
|
path: 'privacy-policy',
|
|
component: PrivacyPolicyComponent
|
|
},
|
|
{
|
|
path: 'change-password',
|
|
component: ChangePasswordComponent
|
|
},
|
|
{
|
|
path: 'two-factor-authentication',
|
|
component: TwoFactorAuthComponent
|
|
},
|
|
{
|
|
path: 'data-export',
|
|
component: DataExportComponent
|
|
},
|
|
{
|
|
path: 'last-login-ip',
|
|
component: LastLoginIpComponent
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'juicy-nft',
|
|
component: NFTUnlockComponent
|
|
},
|
|
{
|
|
path: 'wallet-web3',
|
|
loadChildren: async () => await loadWeb3WalletModule()
|
|
},
|
|
{
|
|
path: 'web3-sandbox',
|
|
loadChildren: async () => await loadWeb3SandboxModule()
|
|
},
|
|
{
|
|
path: 'bee-haven',
|
|
loadChildren: async () => await loadFaucetModule()
|
|
},
|
|
{
|
|
matcher: oauthMatcher,
|
|
data: { params: (window.location.href).substr(window.location.href.indexOf('#')) },
|
|
component: OAuthComponent
|
|
},
|
|
{
|
|
matcher: tokenMatcher,
|
|
component: TokenSaleComponent
|
|
},
|
|
{
|
|
path: '403',
|
|
component: ErrorPageComponent
|
|
},
|
|
{
|
|
path: '**',
|
|
component: SearchResultComponent
|
|
}
|
|
] |