Closed mlconnor closed 11 years ago
Create is done via post. The tests have some examples. Maybe I missunderstand the issue, let me know.
I should have checked the tests. I went for the examples. I found the answer in routes.js. Makes perfect sense.
router.post(base + '/:type', function (req, res, next) {
var Model = m(req);
new Model(clean(req.body)).save(run(res));
});
Hey man, I love the project, thanks for the hard work. Qq. I checked the docs and examples but didn't see how to create objects. Is it assumed that I would roll my own for object creation?