setting domain

This commit is contained in:
hamid zarghami
2025-05-23 19:08:14 +03:30
parent 58678d585b
commit 4c6441e03f
8 changed files with 366 additions and 61 deletions
+17
View File
@@ -1,6 +1,7 @@
import axios from "../../../config/axios";
import { SettingType } from "../types/Types";
// Setting endpoints
export const getSetting = async () => {
const { data } = await axios.get("/business/settings");
return data;
@@ -10,3 +11,19 @@ export const updateSetting = async (params: SettingType) => {
const { data } = await axios.patch("/business/settings", params);
return data;
};
// Domain management endpoints
export const setDomain = async (params: { domain: string }) => {
const { data } = await axios.post("/business/domain", params);
return data;
};
export const verifyDomain = async () => {
const { data } = await axios.post("/business/domain/verify");
return data;
};
export const getDomainStatus = async () => {
const { data } = await axios.get("/business/domain/status");
return data;
};