0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

added the search api with pagnination, and added a remove invalid brew endpoint to the admin

This commit is contained in:
Scott Tolksdorf
2016-04-20 01:02:44 -04:00
parent 8688b99bdf
commit f35950c2c4
5 changed files with 162 additions and 98 deletions

View File

@@ -43,7 +43,7 @@ var Statusbar = React.createClass({
if(!confirm("are you sure you want to delete this brew?")) return;
if(!confirm("are you REALLY sure? You will not be able to recover it")) return;
request.get('/homebrew/remove/' + this.props.editId)
request.get('/homebrew/api/remove/' + this.props.editId)
.send()
.end(function(err, res){
window.location.href = '/homebrew';