node package manager

bricks-rewrite

A simple rewrite plugin for bricks.js

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