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:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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