6 lines
186 B
JavaScript
6 lines
186 B
JavaScript
import { serverPath } from "../variables.js";
|
|
|
|
export async function fetchProductById(id) {
|
|
const response = await fetch(`${serverPath}/products?id=${id}`);
|
|
return response.json();
|
|
} |