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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i genji-static

Weekly Downloads

1

Version

1.0.2

License

none

Last publish

Collaborators

  • zir