diff --git a/data/books.json b/public/data/books.json similarity index 100% rename from data/books.json rename to public/data/books.json diff --git a/data/books/book1.pdf b/public/data/books/book1.pdf similarity index 100% rename from data/books/book1.pdf rename to public/data/books/book1.pdf diff --git a/data/books/book2.pdf b/public/data/books/book2.pdf similarity index 100% rename from data/books/book2.pdf rename to public/data/books/book2.pdf diff --git a/data/books/book3.pdf b/public/data/books/book3.pdf similarity index 100% rename from data/books/book3.pdf rename to public/data/books/book3.pdf diff --git a/data/books/book4.pdf b/public/data/books/book4.pdf similarity index 100% rename from data/books/book4.pdf rename to public/data/books/book4.pdf diff --git a/data/books/book5.pdf b/public/data/books/book5.pdf similarity index 100% rename from data/books/book5.pdf rename to public/data/books/book5.pdf diff --git a/data/books/book6.pdf b/public/data/books/book6.pdf similarity index 100% rename from data/books/book6.pdf rename to public/data/books/book6.pdf diff --git a/data/images/book1.png b/public/data/images/book1.png similarity index 100% rename from data/images/book1.png rename to public/data/images/book1.png diff --git a/data/images/book2.png b/public/data/images/book2.png similarity index 100% rename from data/images/book2.png rename to public/data/images/book2.png diff --git a/data/images/book3.png b/public/data/images/book3.png similarity index 100% rename from data/images/book3.png rename to public/data/images/book3.png diff --git a/data/images/book4.png b/public/data/images/book4.png similarity index 100% rename from data/images/book4.png rename to public/data/images/book4.png diff --git a/data/images/book5.png b/public/data/images/book5.png similarity index 100% rename from data/images/book5.png rename to public/data/images/book5.png diff --git a/data/images/book6.png b/public/data/images/book6.png similarity index 100% rename from data/images/book6.png rename to public/data/images/book6.png diff --git a/src/features/cart/cartThunk.ts b/src/features/cart/cartThunk.ts index 8110b90..4d37b26 100644 --- a/src/features/cart/cartThunk.ts +++ b/src/features/cart/cartThunk.ts @@ -6,7 +6,7 @@ export const fetchProducts = createAsyncThunk( '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);