mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
fixed layout to all app pages. updated product page to use api/products
This commit is contained in:
@@ -8,7 +8,7 @@ export default function Products() {
|
||||
useEffect(() => {
|
||||
async function fetchProducts() {
|
||||
try {
|
||||
const response = await fetch("https://api.example.com/products");
|
||||
const response = await fetch("/api/products");
|
||||
const data = await response.json();
|
||||
setProducts(data);
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user