We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(I will be updating this as I go along //basickarl)
Serves static files
Install: npm install lasso
npm install lasso
Use (with babel):
import lasso_middleware from 'lasso/middleware'; app.use(lasso_middleware.serveStatic(__dirname + '/public'));
Now you can access your file at 127.0.0.1:3000/static/your_file.txt. Lasso serves to the /static url directory by default.
127.0.0.1:3000/static/your_file.txt
/static