Call http://localhost:8089/api/permissions/
function LinkDeviceMember() {
$.ajax({
url: 'http://localhost:8089/api/permissions/',
dataType: 'json',
type: 'post',
data: {userId: 1, deviceId: 3},
xhrFields: {
withCredentials: true
},
success: function (result) {
console.log(result);
}
})
}
Howto solve this problem?
After inspect traccar server,
resource org.traccar.api.resource.PermissionsResource not called,
Call http://localhost:8089/api/permissions/
function LinkDeviceMember() { $.ajax({ url: 'http://localhost:8089/api/permissions/', dataType: 'json', type: 'post', data: {userId: 1, deviceId: 3}, xhrFields: { withCredentials: true }, success: function (result) { console.log(result); } }) }
Howto solve this problem?