Saturday, 13 May 2017

Express serve all files of a folder recursively

When I do this:

app.use('/assets', cacheControl, express.static(path.join(__dirname, 'assets'), { maxAge: 30 }));

I can't access the files of path.join(__dirname, 'assets/fonts')

I wonder whether there is a recursive folder server component by express or not.



via Mohsen

No comments:

Post a Comment