From bb4f4642bff2de0aa761373ba5ae8ee9af5249cf Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 16 Jan 2023 14:45:08 +0100 Subject: [PATCH] first api test --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 33aa0df..f2be829 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ app.use(express.static(clientPath)); const server = http.createServer(app); app.post('/message', (req, res) => { - + res.status(200).send(req.body); }); server.on('error', err => {