1
0
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:
Scott Tolksdorf
2016-08-06 21:08:37 -06:00
parent 33fd991276
commit 388ae933f8
3 changed files with 2 additions and 8 deletions

View File

@@ -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){