mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 22:31:29 +00:00
Fixed a bad route in the admin page
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- Homebrewery will now try and onsert a good title for your brew if you don't provide one
|
- 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
|
- Homebrewery now re-renders properly when you zoom
|
||||||
- Fixed the noteblock overlapping into titles (thanks u/dsompura!)
|
- 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
|
### Friday, 29/07/2016 - v2.2.7
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var HomebrewAdmin = React.createClass({
|
|||||||
|
|
||||||
|
|
||||||
fetchBrews : function(page){
|
fetchBrews : function(page){
|
||||||
request.get('/homebrew/api/search')
|
request.get('/api/search')
|
||||||
.query({
|
.query({
|
||||||
admin_key : this.props.admin_key,
|
admin_key : this.props.admin_key,
|
||||||
count : this.state.count,
|
count : this.state.count,
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ module.exports = function(app){
|
|||||||
|
|
||||||
|
|
||||||
app.get('/api/search', mw.adminOnly, function(req, res){
|
app.get('/api/search', mw.adminOnly, function(req, res){
|
||||||
|
|
||||||
var page = req.query.page || 0;
|
var page = req.query.page || 0;
|
||||||
var count = req.query.count || 20;
|
var count = req.query.count || 20;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user