Răsfoiți Sursa

feat(apis): cliente de API e rota da página de integrações

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ebagabee 1 lună în urmă
părinte
comite
c2d8039ef0
2 a modificat fișierele cu 26 adăugiri și 0 ștergeri
  1. 11 0
      src/api/unit_payment_account.js
  2. 15 0
      src/router/routes/apis.route.js

+ 11 - 0
src/api/unit_payment_account.js

@@ -0,0 +1,11 @@
+import api from "src/api";
+
+export const getPaymentAccountMe = async () => {
+  const { data } = await api.get("/unit-payment-account/me");
+  return data.payload;
+};
+
+export const savePaymentAccountMe = async (payload) => {
+  const { data } = await api.post("/unit-payment-account/me", payload);
+  return data.payload;
+};

+ 15 - 0
src/router/routes/apis.route.js

@@ -0,0 +1,15 @@
+export default [
+  {
+    path: "/apis",
+    name: "ApisPage",
+    component: () => import("pages/apis/ApisPage.vue"),
+    meta: {
+      title: { value: "APIs", translate: false },
+      requireAuth: true,
+      breadcrumbs: [
+        { name: "DashboardPage", title: "Dashboard" },
+        { name: "ApisPage", title: "APIs" },
+      ],
+    },
+  },
+];