feat: Support update geodata

#37
This commit is contained in:
MystiPanda
2023-12-10 15:22:04 +08:00
parent 556232aac4
commit a66e8dfc9f
5 changed files with 35 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ export const updateConfigs = async (config: Partial<IConfigData>) => {
return instance.patch("/configs", config);
};
/// Update geo data
export const updateGeoData = async () => {
const instance = await getAxios();
return instance.post("/configs/geo");
};
/// Get current rules
export const getRules = async () => {
const instance = await getAxios();