1
+ import express from "express" ;
2
+
3
+ const app = express ( ) ;
4
+
5
+ app . get ( "/" , function ( req , res ) {
6
+ const reqBody = req . param ( 'body' ) ;
7
+ const reqQuery = req . param ( 'query' ) ;
8
+ const reqQueryTest = req . param ( 'query' ) . test ;
9
+ const reqOther = req . param ( 'other' ) ;
10
+ const reqOtherNested = req . param ( 'other' ) . nested ;
11
+ } ) ;
12
+
13
+ app . get ( "/" , function ( request , response ) {
14
+ const reqBody = request . param ( 'body' ) ;
15
+ const reqQuery = request . param ( 'query' ) ;
16
+ const reqQueryTest = request . param ( 'query' ) . test ;
17
+ const reqOther = request . param ( 'other' ) ;
18
+ const reqOtherNested = request . param ( 'other' ) . nested ;
19
+ } ) ;
20
+
21
+ app . get ( "/" , ( req , res ) => {
22
+ const reqBody = req . param ( 'body' ) ;
23
+ const reqQuery = req . param ( 'query' ) ;
24
+ const reqQueryTest = req . param ( 'query' ) . test ;
25
+ const reqOther = req . param ( 'other' ) ;
26
+ const reqOtherNested = req . param ( 'other' ) . nested ;
27
+ } ) ;
28
+
29
+ app . get ( "/" , ( request , response ) => {
30
+ const reqBody = request . param ( 'body' ) ;
31
+ const reqQuery = request . param ( 'query' ) ;
32
+ const reqQueryTest = request . param ( 'query' ) . test ;
33
+ const reqOther = request . param ( 'other' ) ;
34
+ const reqOtherNested = request . param ( 'other' ) . nested ;
35
+ } ) ;
36
+
37
+ app . param ( function ( ) {
38
+ // my important logic
39
+ } )
0 commit comments