first api test

This commit is contained in:
Baipyrus 2023-01-16 14:45:08 +01:00
parent 2245199434
commit bb4f4642bf

View File

@ -9,7 +9,7 @@ app.use(express.static(clientPath));
const server = http.createServer(app); const server = http.createServer(app);
app.post('/message', (req, res) => { app.post('/message', (req, res) => {
res.status(200).send(req.body);
}); });
server.on('error', err => { server.on('error', err => {