0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 14:18:40 +00:00

Fixed a bad route in the admin page

This commit is contained in:
Scott Tolksdorf
2016-08-20 13:40:05 -04:00
parent 78426135c6
commit 43ec212be9
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@
- Homebrewery will now try and onsert a good title for your brew if you don't provide one
- Homebrewery now re-renders properly when you zoom
- Fixed the noteblock overlapping into titles (thanks u/dsompura!)
- Fixed a bad search route in the admin panel (thanks u/SnappyTom!)
### Friday, 29/07/2016 - v2.2.7
+1 -1
View File
@@ -28,7 +28,7 @@ var HomebrewAdmin = React.createClass({
fetchBrews : function(page){
request.get('/homebrew/api/search')
request.get('/api/search')
.query({
admin_key : this.props.admin_key,
count : this.state.count,
+1
View File
@@ -107,6 +107,7 @@ module.exports = function(app){
app.get('/api/search', mw.adminOnly, function(req, res){
var page = req.query.page || 0;
var count = req.query.count || 20;