Add product data domain layer

This commit is contained in:
sdarbinyan
2026-07-05 01:02:16 +04:00
parent 9cf508d319
commit 05d75421f5
8 changed files with 266 additions and 2 deletions

View File

@@ -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);