2020-03-11 12:34:34 +00:00
|
|
|
let callItem = function() {}
|
|
|
|
|
|
|
|
export const overrideDummy = function(override) {
|
|
|
|
callItem = override
|
|
|
|
}
|
|
|
|
|
|
|
|
export const dummy = function() { callItem() }
|
|
|
|
|
2024-10-27 05:12:19 +00:00
|
|
|
export const testRoutes = [
|
|
|
|
// '/api/articles/:id/file/:fileId',
|
|
|
|
'/',
|
|
|
|
// '/api/articles',
|
|
|
|
// '/api/articles/:id/file',
|
|
|
|
// '/api/articles/:id',
|
|
|
|
'/::rest',
|
|
|
|
]
|
|
|
|
|
2020-03-11 12:34:34 +00:00
|
|
|
export const allRoutes = [
|
|
|
|
'/',
|
|
|
|
'/api/articles',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/articles/:id/file',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/articles/:id',
|
|
|
|
'/api/articles/public',
|
|
|
|
'/api/articles/public/:id',
|
|
|
|
'/api/file',
|
|
|
|
'/api/file/:id',
|
|
|
|
'/api/media',
|
|
|
|
'/api/media/:id',
|
|
|
|
'/api/pages',
|
|
|
|
'/api/pages/:id',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/pages/:id/articles',
|
|
|
|
'/api/pages/:id/articles/public',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/staff',
|
|
|
|
'/api/staff/:id',
|
2024-10-27 05:12:19 +00:00
|
|
|
'/::rest',
|
2020-03-11 12:34:34 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
export const allManyRoutes = [
|
|
|
|
'/',
|
|
|
|
'/api/articles',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/articles/:id/file',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/articles/:id',
|
|
|
|
'/api/articles/public',
|
|
|
|
'/api/articles/public/:id',
|
|
|
|
'/api/categories',
|
|
|
|
'/api/categories/:categoryId/products',
|
|
|
|
'/api/categories/:categoryId/properties',
|
|
|
|
'/api/categories/:categoryId/values/:props',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/categories/:categoryId',
|
2024-10-27 05:12:19 +00:00
|
|
|
//'/api/categories/:categoryId/products/:productId',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/categories/:categoryId/products/:productId',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/customers',
|
|
|
|
'/api/customers/:id',
|
|
|
|
'/api/customers/kennitala/:kennitala',
|
|
|
|
'/api/customers/public/kennitala/:kennitala',
|
|
|
|
'/api/customers/search/:search',
|
|
|
|
'/api/file',
|
|
|
|
'/api/file/:id',
|
|
|
|
'/api/media',
|
|
|
|
'/api/media/:id',
|
|
|
|
'/api/orderitem',
|
|
|
|
'/api/orderitem/:id',
|
|
|
|
'/api/orders',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/orders/:orderId',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/orders/:orderId/sell',
|
|
|
|
'/api/pages',
|
2021-07-05 17:54:00 +00:00
|
|
|
'/api/pages/:pageId',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/pages/:pageId/articles',
|
|
|
|
'/api/pages/:pageId/articles/public',
|
|
|
|
'/api/products',
|
|
|
|
'/api/products/:id',
|
|
|
|
'/api/products/:id/movement',
|
|
|
|
'/api/products/:id/sub_products/:productId',
|
2024-10-27 05:12:19 +00:00
|
|
|
//'/api/products/:id/sub_products/:productId',
|
2020-03-11 12:34:34 +00:00
|
|
|
'/api/products/code/:code',
|
|
|
|
'/api/products/property/:propertyId',
|
|
|
|
'/api/properties',
|
|
|
|
'/api/properties/:id',
|
|
|
|
'/api/sales',
|
|
|
|
'/api/sales/:id',
|
|
|
|
'/api/stockitem',
|
|
|
|
'/api/stockitem/:id',
|
|
|
|
'/api/stocks',
|
|
|
|
'/api/stocks/:id',
|
|
|
|
'/api/stocks/:id/commit',
|
|
|
|
'/api/test',
|
|
|
|
'/api/test/auth',
|
|
|
|
'/api/test/error',
|
|
|
|
'/api/workentries',
|
|
|
|
'/api/workentries/:id',
|
|
|
|
'/api/works',
|
|
|
|
'/api/works/:id',
|
|
|
|
'/api/works/:id/lock',
|
|
|
|
'/api/works/public',
|
|
|
|
'/api/staff',
|
|
|
|
'/api/staff/:id',
|
2024-10-27 05:12:19 +00:00
|
|
|
'/::rest',
|
2020-03-11 12:34:34 +00:00
|
|
|
]
|