исправил http
This commit is contained in:
1 parent
cacc69a7d3
commit
941e3ea9df
3 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import axios from "axios";
|
||||
/*import axios from "axios";
|
||||
import type { Product } from "../types/product";
|
||||
import type { Category } from "../types/categories";
|
||||
|
||||
@@ -10,5 +10,5 @@ export const fetchCategoryProducts = async (category: string): Promise<Product[]
|
||||
export const fetchCategories = async (categoryid: string): Promise<Category[]> => {
|
||||
const response = await axios.get(`https://your-api.com/api/category=${categoryid}`);
|
||||
return response.data;
|
||||
};
|
||||
};*/
|
||||
|
||||
Reference in new issue
Block a user