30 lines
808 B
TypeScript
30 lines
808 B
TypeScript
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;
|
|
};
|
|
|
|
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;
|
|
};
|