pusudb-use-static-file
Middleware to serve static-files with the pusudb-framework.
This middleware adds a file-handler to the pusudb-framework to serve static files.
Framework: pusudb
Installing
npm install pusudb-use-static-file --save
Use
Define the path where the static-files are located. Define some url's which should be escaped. To define a url-prefix use the option prefix.
var Pusudb = var pusudb = 3000 'localhost' log : true var Static = // prefix '/css' : http://localhost:3000/css/main.cssvar static = __dirname + '/node_modules/css' '/db' /* blocked pathnames */ prefix : '/css' //add the middleware to the pusudbpusudb pusudb
Authors
- Yannick Grund - Initial work - yamigr
License
This project is licensed under the MIT License