bricks.js rewrite module
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
package.json

README.md

bricks-rewrite

A rewrite module for bricks.js.

Installing

$ npm install bricks-rewrite

Usage

var rewrite = require('bricks-rewrite');

var rules = [
  {
    path:    '^/$',
    replace: '/index.html'
  }
];

appserver.addRoute('.+', rewrite, { section: "pre", rules: rules });