ampersand-rest-collection icon indicating copy to clipboard operation
ampersand-rest-collection copied to clipboard

Make type to POST

Open ampersandstarter opened this issue 9 years ago • 0 comments

Where to deifn method, type, etc in the Collection. Need to know how to use success too.

var Collection = AmpersandRestCollection.extend({
    url:'http://localhost:3000/users',
    model: SignupModel,
              type: "POST",
            method: "POST",
    ajaxConfig: function () {
        return {
            headers: {
                'Content-Type': 'application/json; charset=UTF-8',
                'Accept':'text/html'
            },
            xhrFields: {
                withCredentials: false
            }
        };
    }
});

ampersandstarter avatar Jun 28 '15 12:06 ampersandstarter