Using the express in the nodejs
const express = require("express");
const app = express();
const port = 80;
app.get("/", (req,res) =>{
res.status(200).send("This is the test code");
});
app.get("/about", (req,res) =>{
res.send("This is the About code");
});
app.post("/contact", (req,res) =>{
res.status(404).send("This is the contact code ths");
});
app.listen(port,()=>{
console.log("port is running");
});
Thanks you for commenting your questions. I will see question and respond you.