2020-03-11 12:34:34 +00:00
|
|
|
let callItem = function() {}
|
|
|
|
|
|
|
|
export const overrideDummy = function(override) {
|
|
|
|
callItem = override
|
|
|
|
}
|
|
|
|
|
|
|
|
export const dummy = function() { callItem() }
|
|
|
|
|
|
|
|
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',
|
|
|
|
]
|
|
|
|
|
|
|
|
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',
|
|
|
|
'/api/categories/:categoryId/products/:productId',
|
|
|
|
'/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',
|
|
|
|
'/api/products/:id/sub_products/:productId',
|
|
|
|
'/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',
|
|
|
|
]
|