mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
new pages
This commit is contained in:
9
pages/api/products.js
Normal file
9
pages/api/products.js
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user