feat: api.php 호출에서 path를 경로로 지정하는 방식 추가

This commit is contained in:
2022-02-25 01:54:22 +09:00
parent 07dc78784e
commit 42ff8adee8
4 changed files with 29 additions and 17 deletions
+2 -5
View File
@@ -16,13 +16,10 @@ export async function callSammoAPI<ResultType extends ValidResponse, ErrorType e
}
const response = await axios({
url: "api.php",
url: `api.php?path=${path}`,
method: "post",
responseType: "json",
data: {
path,
args,
},
data: args
});
const result: ErrorType | ResultType = response.data;
if (!result.result) {