Skip to content

Instantly share code, notes, and snippets.

@mandric
Created February 17, 2012 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandric/1855770 to your computer and use it in GitHub Desktop.
Save mandric/1855770 to your computer and use it in GitHub Desktop.
var rewrites = require('kujua-sms/rewrites').rules,
_ = require('underscore')._;
/**
* Rewrite settings to be exported from the design doc
*/
module.exports = _.union(rewrites, [
{from: '/static/*', to: 'static/*'},
{from: '/install', to: '_show/docs', method: 'GET'},
{from: '/install/img/*', to: 'docs/install/img/*', method: 'GET'},
{from: '/install/gateway/*', to: 'docs/install/gateway/*', method: 'GET'},
require('nodeunit-testrunner/rewrites'),
{from: '/', to: '_show/sms_forms'},
{from: '*', to: '_show/not_found'}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment