first api test
This commit is contained in:
parent
2245199434
commit
bb4f4642bf
2
index.js
2
index.js
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user