전투시스템 상태 및 처리
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user