mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 20:42:44 +00:00
Send entire brew to HomePage save function
This commit is contained in:
@@ -38,9 +38,7 @@ const HomePage = createClass({
|
|||||||
},
|
},
|
||||||
handleSave : function(){
|
handleSave : function(){
|
||||||
request.post('/api')
|
request.post('/api')
|
||||||
.send({
|
.send(this.state.brew)
|
||||||
text : this.state.brew.text
|
|
||||||
})
|
|
||||||
.end((err, res)=>{
|
.end((err, res)=>{
|
||||||
if(err) return;
|
if(err) return;
|
||||||
const brew = res.body;
|
const brew = res.body;
|
||||||
|
|||||||
Reference in New Issue
Block a user