Answers for "accept Post with no midleWare express"

1

accept Post with no midleWare express

const express=require('express');
const app=express();
//accept Post with no midleWare express
app.post("/register/",function(req,res){
    var bodyStr = '';
    req.on("data",function(chunk){
        bodyStr += chunk.toString();
    });
    req.on("end",function(){
        res.send(bodyStr);
    });

});
Posted by: Guest on September-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language