Make our default message also JSON (not string)
Let's be consistent ;)
This commit is contained in:
parent
0962bf0e0f
commit
c65b054b99
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -10,7 +10,7 @@ app.listen(5000, () => {
|
|||
})
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.send("Hi!")
|
||||
res.send({ status: "ok", message: "woof, woof!" })
|
||||
})
|
||||
|
||||
app.post("/add", (req, res) => {
|
||||
|
|
Loading…
Reference in a new issue