mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add server order to api call
This commit is contained in:
parent
c0381da880
commit
d473a6ccf4
@ -89,6 +89,7 @@ class UsersController:
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"hints": {"type": "boolean"},
|
"hints": {"type": "boolean"},
|
||||||
|
"server_order": {"type": "string"},
|
||||||
}
|
}
|
||||||
|
|
||||||
# **********************************************************************************
|
# **********************************************************************************
|
||||||
|
@ -1042,12 +1042,12 @@
|
|||||||
const token = getCookie("_xsrf")
|
const token = getCookie("_xsrf")
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "PATCH",
|
||||||
headers: { 'X-XSRFToken': token },
|
headers: { 'X-XSRFToken': token },
|
||||||
url: '/ajax/send_order?order=' + id_string,
|
url: `/api/v2/users/@me`,
|
||||||
data: {
|
data: JSON.stringify({
|
||||||
order: id_string,
|
server_order: id_string,
|
||||||
},
|
}),
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
console.log("got response:");
|
console.log("got response:");
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user