Skip to content

Commit ecc137c

Browse files
authored
Update index.js
1 parent a5c71a9 commit ecc137c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = class FastPanel {
3636

3737
_post(route, data) {
3838
return new Promise(async (resolve, reject) => {
39-
const res = await axios.get(`${this.url}/${route}`, {
39+
const res = await axios.post(`${this.url}/${route}`, data, {
4040
headers: {
4141
Authorization: `Bearer ${this.token}`
4242
}
@@ -54,4 +54,4 @@ module.exports = class FastPanel {
5454
reject(res)
5555
});
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)