전투시스템 상태 및 처리

This commit is contained in:
2025-02-24 17:49:09 +09:00
parent c6dac677f6
commit 68c44cbf09
7 changed files with 67 additions and 23 deletions

View File

@@ -66,6 +66,21 @@ export const BattleEventModify = async (token, id, params) => {
}
};
//전투시스템 중단
export const BattleEventStop = async (token, id, params) => {
try {
const res = await Axios.put(`/api/v1/battle/event/stop/${id}`, {},{
headers: { Authorization: `Bearer ${token}` },
});
return res.data;
} catch (e) {
if (e instanceof Error) {
throw new Error('BattleEventStop Error', e);
}
}
};
// 전투시스템 삭제
export const BattleEventDelete = async (token, params) => {
try {