new pages

This commit is contained in:
2024-11-20 12:52:44 -05:00
parent 38e014a505
commit c08cd908dd
7 changed files with 424 additions and 94 deletions

9
pages/api/products.js Normal file
View File

@@ -0,0 +1,9 @@
export default function handler(req, res) {
const products = [
{ id: 1, name: "Barrel A", description: "High-quality steel barrel.", price: 120 },
{ id: 2, name: "Scope X", description: "Precision optical scope.", price: 300 },
{ id: 3, name: "Stock Z", description: "Ergonomic polymer stock.", price: 80 },
];
res.status(200).json(products);
}