Hellow I have code in my **app.js**, looking like that:

```
app.use('/someurl', require('./middleware/somemodule'));

```

-app.use instead app.all

and module looks like:

```
 if(process.env.BLALAL === undefined){ 
   throw "Error: process.env.BLALAL === undefined";
 }

 module.exports = function(req, res, next){
   ...
 }

```

is it a **bad** practice ?