Project: lowdb
Task (easy): 1) define a Product type in global.d.ts, update defaultData in instrumentation.ts
2) POST /api/products to insert product data (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100})
3) Return { success: true, data: {'id': 'xxxx' } } when inserted successfully
4) GET /api/products to fetch all products
5) Return { success: true, products: [{'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}] } when fetched successfully
6) Hint: use global.db.data.products and get product model by lowdb API