protect delete behind auth

This commit is contained in:
Ben West
2015-09-01 14:23:32 -07:00
parent a927c3502b
commit fa11bc09d8
+1 -1
View File
@@ -552,7 +552,7 @@ curl -s -g 'http://localhost:1337/api/v1/times/20{14..15}/T{13..18}:{00..15}'.js
* Delete entries. The query logic works the same way as find/list. This
* endpoint uses same search logic to remove records from the database.
*/
api.delete('/entries/:spec', function(req, res, next) {
api.delete('/entries/:spec', wares.verifyAuthorization, function (req, res, next) {
// if ID, prepare to query for one record
if (isId(req.params.id)) {
prepReqModel(req, req.params.model);