mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-19 03:21:29 +00:00
rmeoving the top api call, as it was never finished and opened a security issue.
This commit is contained in:
@@ -30,12 +30,6 @@ var getTopBrews = function(cb){
|
||||
|
||||
module.exports = function(app){
|
||||
|
||||
app.get('/api/top', function(req, res){
|
||||
getTopBrews(function(topBrews){
|
||||
return res.json(topBrews);
|
||||
});
|
||||
});
|
||||
|
||||
app.post('/api', function(req, res){
|
||||
var newHomebrew = new HomebrewModel(req.body);
|
||||
newHomebrew.save(function(err, obj){
|
||||
|
||||
Reference in New Issue
Block a user