Reputation: 1765
Right now I am passing data via headers in the destroy request like shown below
this.model.destroy(
{
headers: {
'myId': myId
}
}
);
Is it possible to pass myId as the url parameter to delete request ?
Thanks, Prats
Upvotes: 1
Views: 1548
Reputation: 11538
You can pass the data
in object in the destroy
params
this.model.destroy(
{
data: {
'myId': myId
}
}
Upvotes: 1