You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠ THIS PAGE IS UNDER MAINTENANCE, SOME DETAILS MAY BE INCOMPLETE/INACCURATE ⚠
Installation:
npm i sys-nodehttp
Usage:
varpath=require('path'),nodehttp=require('sys-nodehttp'),server=newnodehttp.Server({port: process.env.PORT||8080,address: '0.0.0.0',});server.get('/api',(req,res)=>{res.send('Hello world!');});server.post('/api',(req,res)=>{// req.body is an objectconsole.log('Recieved POST with body:',req.body);});server.use(nodehttp.static(path.join(__dirname,'public')));