Skip to content

Commit 5d03a1a

Browse files
committed
change checkget default to true |know issue notice
1 parent 484cd31 commit 5d03a1a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ app.use(
117117
checkGet: true, //Wether to check the GET requests or not
118118
emptyBodyMsg: 'Err Msg 1', //Custom msg for empty body
119119
emptyFieldMsg: 'Err Msg 2', //Custom msg for missing fields
120-
supressFieldKey = false, //To supress the key of the missing field
120+
supressFieldKey: false, //To supress the key of the missing field
121121
}),
122122
);
123123

@@ -144,6 +144,10 @@ $ npm i
144144
$ npm test
145145
```
146146

147+
## Known Issues
148+
149+
express-suite's `emptyInputCheck` function does not work well with [Multer](https://www.npmjs.com/package/multer)
150+
147151
## License
148152

149153
[Apache License 2.0](https://github.com/algo7/express-suite/blob/master/LICENSE)

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const routeCheck = (app, {
8181
* @returns {function():void}
8282
*/
8383
const emptyInputCheck = ({
84-
checkGet = true,
84+
checkGet = false,
8585
emptyBodyMsg = 'The request body is empty!',
8686
emptyFieldMsg = 'Some fields are missing!',
8787
supressFieldKey = false,

0 commit comments

Comments
 (0)