api_srvr: Typing error fixed

This commit is contained in:
Rene V. Vergara A. 2023-12-23 20:51:41 -05:00
parent b080396108
commit 83e371a164

View file

@ -45,7 +45,7 @@ app.get('/data',(req:Request, resp:Response): void => {
app.post('/data', (req:Request, resp:Response): void => {
// Process POST requests here...
console.log('Post query' + JSON.stringify(req.query));
resp.status(2send('Post response is on the way...(maybe...)\n' +
resp.status(200).send('Post response is on the way...(maybe...)\n' +
JSON.stringify(req.query));
});