Answers for "express get function"

3

express route parameters

Route path: /users/:userId/books/:bookId
Request URL: http://localhost:3000/users/34/books/8989
req.params: { "userId": "34", "bookId": "8989" }
Posted by: Guest on July-05-2020
0

express get

app.get('/', function (req, res) {
  res.send('Hello World!')
})
Posted by: Guest on May-11-2021
0

express route parameters

Route path: /flights/:from-:to
Request URL: http://localhost:3000/flights/LAX-SFO
req.params: { "from": "LAX", "to": "SFO" }
Posted by: Guest on July-05-2020
-1

get in expressjs

const express = require('express');
const app = express();
app.get('/', async (req, res)=>{
  req.("request is sent");
res.send("Message here...");
})
Posted by: Guest on April-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language