feat: add Categories
This commit is contained in:
9
spa/src/utils/ftch.js
Normal file
9
spa/src/utils/ftch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import {$fetch} from "ofetch";
|
||||
|
||||
const BASE_URL = '/';
|
||||
|
||||
export default async function (action, query) {
|
||||
return await $fetch(`${BASE_URL}index.php?route=extension/tgshop/handle&api_action=${action}`, {
|
||||
query: query,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user