We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c71a9 commit ecc137cCopy full SHA for ecc137c
1 file changed
index.js
@@ -36,7 +36,7 @@ module.exports = class FastPanel {
36
37
_post(route, data) {
38
return new Promise(async (resolve, reject) => {
39
- const res = await axios.get(`${this.url}/${route}`, {
+ const res = await axios.post(`${this.url}/${route}`, data, {
40
headers: {
41
Authorization: `Bearer ${this.token}`
42
}
@@ -54,4 +54,4 @@ module.exports = class FastPanel {
54
reject(res)
55
});
56
57
-}
+}
0 commit comments