Create get API web page using Express in NodeJS

const express=require('express');

const app=express();

app.get('',(req,resp)=>{
    resp.send('hello, This is HOME Page');
});

app.get('/about',(req,resp)=>{
    resp.send("HELLO, This is About Page");
});

app.get('/help',(req,resp)=>{
    resp.send("Hello Guys, This is help Pages");
})

app.listen(4000);

Post a Comment

0 Comments