Backbone.js & Flask RESTful API (OPTIONS request only)
In js/views/library.js
you are using Collection.add
rather than Collection.create
, which means the model is never synced with the server. Either call Collection.sync
on your Library
or directly save
the new model.