-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathroutes.tsx
More file actions
124 lines (121 loc) · 3.64 KB
/
routes.tsx
File metadata and controls
124 lines (121 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import loadable from '@loadable/component'
const Home = loadable(() => import('./pages/home'))
const UseProducts = loadable(() => import('./pages/use-shopper-products'))
const UseProduct = loadable(() => import('./pages/use-shopper-product'))
const UseCategories = loadable(() => import('./pages/use-shopper-categories'))
const UseCategory = loadable(() => import('./pages/use-shopper-category'))
const UseShopperExperience = loadable(() => import('./pages/use-shopper-experience'))
const UseProductSearch = loadable(() => import('./pages/use-product-search'))
const UseCustomer = loadable(() => import('./pages/use-shopper-customer'))
const UsePromotions = loadable(() => import('./pages/use-promotions'))
const UsePromotionsForCampaign = loadable(() => import('./pages/use-promotions-for-campaign'))
const UseAuthHelper = loadable(() => import('./pages/use-auth-helper'))
const UseSearchSuggestions = loadable(() => import('./pages/use-search-suggestions'))
const UseShopperBaskets = loadable(() => import('./pages/use-shopper-baskets'))
const QueryErrors = loadable(() => import('./pages/query-errors'))
const UseGetOrder = loadable(() => import('./pages/use-shopper-get-order'))
const UsePaymentMethods = loadable(() => import('./pages/use-payment-methods'))
const UseShopperOrders = loadable(() => import('./pages/use-shopper-orders'))
const UseCustomerId = loadable(() => import('./pages/use-customer-id'))
const UseShopperContext = loadable(() => import('./pages/use-shopper-context'))
const UseCustomEndpoint = loadable(() => import('./pages/use-custom-endpoint'))
const UseShopperStores = loadable(() => import('./pages/use-shopper-stores'))
const UseDntHook = loadable(() => import('./pages/use-dnt'))
const routes = [
{
path: '/',
exact: true,
component: Home
},
{
path: '/products/:productId',
component: UseProduct
},
{
path: '/products',
component: UseProducts
},
{
path: '/experience',
component: UseShopperExperience
},
{
path: '/categories/:categoryId',
component: UseCategory
},
{
path: '/categories',
component: UseCategories
},
{
path: '/search',
component: UseProductSearch
},
{
path: '/search-suggestions',
component: UseSearchSuggestions
},
{
path: '/use-promotions',
component: UsePromotions
},
{
path: '/use-promotions-for-campaign',
component: UsePromotionsForCampaign
},
{
path: '/customer',
component: UseCustomer
},
{
path: '/slas-helpers',
component: UseAuthHelper
},
{
path: '/basket',
component: UseShopperBaskets
},
{
path: '/query-errors',
component: QueryErrors
},
{
path: '/orders/:orderNo/payment-methods',
component: UsePaymentMethods
},
{
path: '/orders/:orderNo',
component: UseGetOrder
},
{
path: '/orders',
component: UseShopperOrders
},
{
path: '/customerId',
component: UseCustomerId
},
{
path: '/context',
component: UseShopperContext
},
{
path: '/custom-endpoint',
component: UseCustomEndpoint
},
{
path: '/stores',
component: UseShopperStores
},
{
path: '/dnt',
component: UseDntHook
}
]
export default routes