Skip to content

Commit

Permalink
Add entries support for delete query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Cunningham committed Nov 21, 2018
1 parent df85311 commit 5565b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/api/entries/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,12 @@ curl -s -g 'http://localhost:1337/api/v1/times/20{14..15}/T{13..18}:{00..15}'.js
next();
}, delete_records);


// delete record that match query
api.delete('/entries/', ctx.authorization.isPermitted('api:entries:delete'), delete_records);
}

return api;
}

// expose module
module.exports = configure;
module.exports = configure;

0 comments on commit 5565b7f

Please sign in to comment.