1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-12 22:15:55 +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

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

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,

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;