In node.js express static to make a substitute folder?

I can not understand how can I make(

There is a request to the web server at node.js express:
localhost:3000/hot/bla1.html or localhost:3000/hot/hot2/go3/bla1.html and so on..


the gcd gives the static folder hot via
app.use(express.static( './hot' ));

It works! but I need to make a substitution statics:
for whatever queries:
localhost:3000/hot/bla1.html or localhost:3000/hot/hot2/go3/bla1.html and so on..


given the content of the folder hot777
July 9th 19 at 13:30
2 answers
July 9th 19 at 13:34
not tried
app.use(/^([^\/]*\/)*/, express.static(__dirname + '/hot'));
July 9th 19 at 13:32
Solution
Solution:
app.use('/hot', express.static('hot777'));

Find more questions by tags Express.jsNode.js