+analytics update
This commit is contained in:
@@ -4,8 +4,14 @@ import {Category} from "@/models/Category"; // Импортируете нас
|
||||
|
||||
export const getCategories = async (type = null) => {
|
||||
|
||||
type = type ? type : ''
|
||||
return await apiClient.get('/categories?type=' + type);
|
||||
|
||||
const params = {};
|
||||
if (type) {
|
||||
params.type = type;
|
||||
}
|
||||
return await apiClient.get('/categories', {
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
export const getCategoryTypes = async () => {
|
||||
|
||||
Reference in New Issue
Block a user