Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

genji-static

1.0.2 • Public • Published

genji-static

A static file serving middleware for genji framework.

Usage

var genji = require('genji');
 
// Create a genji site instance
var site = genji.site();
 
// Use this plugin
site.use(require('genji-static'), {
  staticRoot: '/home/www/public', // Root path of the static resources
  filter: '/public' // This tell the plugin to handle only the url which starts with '/public'
});
 
// Start handling request
site.start();

Keywords

none

install

npm i genji-static

Downloadsweekly downloads

3

version

1.0.2

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability