1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 03:45:56 +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

@@ -34,7 +34,7 @@ var Navbar = React.createClass({
<Nav.item href='/' className='homebrewLogo'>
<div>The Homebrewery</div>
</Nav.item>
<Nav.item>v2.2.7</Nav.item>
<Nav.item>v2.2.8</Nav.item>
{this.renderChromeWarning()}
</Nav.section>

View File

@@ -1,7 +1,7 @@
{
"name": "homebrewery",
"description": "Create authentic looking D&D homebrews using only markdown",
"version": "2.2.7",
"version": "2.2.8",
"scripts": {
"postinstall": "gulp prod",
"start": "node server.js"

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