Fix POST
This commit is contained in:
parent
d1b2b93d14
commit
4603c522dc
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
|
@ -66,7 +66,7 @@ app.post("/login", function(req, res){
|
|||
}
|
||||
})
|
||||
|
||||
app.post("compose", (req, res) => {
|
||||
app.post("/compose", (req, res) => {
|
||||
const post = {
|
||||
title: req.body.postTitle,
|
||||
content: req.body.postBody
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue