Skip to content

Commit

Permalink
moves data to public
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolinsdigital committed Sep 3, 2024
1 parent 6f4a50e commit 0b93b5f
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/features/cart/cartThunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const fetchProducts = createAsyncThunk<Product[]>(
'cart/fetchProducts',
async () => {
try {
const response = await axios.get('data/books.json');
const response = await axios.get('public/data/books.json');
return response.data.products;
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 0b93b5f

Please sign in to comment.