Add product data domain layer
This commit is contained in:
@@ -779,8 +779,8 @@ export const mockDataInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
return respond(items);
|
||||
}
|
||||
|
||||
// ── GET /item/:id
|
||||
const itemMatch = url.match(/\/item\/([^/?]+)$/);
|
||||
// ── GET /items/:id
|
||||
const itemMatch = url.match(/\/items?\/([^/?]+)$/);
|
||||
if (itemMatch && req.method === 'GET') {
|
||||
const raw = itemMatch[1];
|
||||
const num = Number(raw);
|
||||
|
||||
Reference in New Issue
Block a user