How to override Backbone.sync so it adds the apikey and username at the end?

前端 未结 2 1737
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 07:59

I am using backbone-tastypie, but I am having the toughest time getting it to work properly. In Tastypie, I am using ApiKeyAuthentication for my resources, so every ajax req

2条回答
  •  温柔的废话
    2021-01-14 08:42

    Just for future readers of this post, when you do a model.destroy() you can't pass any data because the delete request doesn't have a body, see this issue for more info: https://github.com/documentcloud/backbone/issues/789

提交回复
热议问题