So let's say each API does some check for authorization and checks if your req.body does not have any null values. Instead of writing these explicitly in each API, if I write it in app.use( ), would it create a choke point?Would each request wait here till the previous one does not move along? I guess the app.use ( ) should not "await" right? It should only operate on callbacks or on then( )
Submitted August 01, 2019 at 06:18AM by kjroger94
No comments:
Post a Comment