Express sendfile


> [How to set dynamic route for static files in express](https://stackoverflow.com/questions/32544846/how-to-set-dynamic-route-for-static-files-in-express/32545009)



```typeres.sendfile(absolute) like __dirname + '/public/'```

throw new TypeError('path must be absolute or specify root to res.sendFile');

> [How to set dynamic route for static files in express](https://stackoverflow.com/questions/32544846/how-to-set-dynamic-route-for-static-files-in-express/32545009)





