rapidjs / rapid.js

An ORM-like Interface and a Router For Your API Requests
https://rapidjs.drewjbartlett.com
711 stars 45 forks source link

Add restore method #33

Closed drewjbartlett closed 6 years ago

drewjbartlett commented 6 years ago

This adds the restore() method that emulates restoring/undeleting a model / collection.

photo.restore(123); // POST => /api/photo/123/restore