The-M-Project
The-M-Project copied to clipboard
remove of an model from the bikine store
By using the LocalStorageStore, I can delete my Model with the 'destroy' method. When I'm using the BikiniStore the DELETE request throws a 404. I figured out that BikiniStore uses as default '_id' instead of 'id'. So I added this line to my model:
idAttribute: '_id'
Now it works fine with the LocalStorageStore and BikiniStore. Maybe the BikiniStore should use the id as default.