From e775f8e6757be753fe49cf665740395a8751f81d Mon Sep 17 00:00:00 2001 From: Zoheb Alli Khan Date: Fri, 4 Jun 2021 10:45:05 +0530 Subject: [PATCH] Request Method and Props --- backend/express.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/backend/express.js b/backend/express.js index a06fc0a..6814152 100644 --- a/backend/express.js +++ b/backend/express.js @@ -158,4 +158,24 @@ app.use('', admin)`; // Mounting a sub - app `app.use(function(req,res,next){ res.send('Hey There!') -})` \ No newline at end of file +})` + +```Request``` +``Methods`` + +`req.param('name')` + +``app.post('/', function (req, res, next) { + console.log(req.body) + res.json(req.body) +})`` + +`console.dir(req.cookies.name)` + +`console.dir(req.query.q)` + +`console.log(req.route) +res.send('GET')` + +`console.dir(req.signedCookies.user)` +