feat: add Categories

This commit is contained in:
Nikita Kiselev
2025-07-14 22:34:51 +03:00
parent b25f6d3c73
commit 6a8ea048ea
13 changed files with 320 additions and 92 deletions

9
spa/src/utils/ftch.js Normal file
View 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,
});
};