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

This commit is contained in:
Hide_D committed 2022-02-25 01:54:22 +09:00
1 parent 6e24ca230d
commit 4f0dbf0f92
4 files changed
+29 -17

No files matched your search

+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) {