more robust rewrites

This commit is contained in:
maxogden 2011-04-24 18:14:59 -07:00
parent f682d0e508
commit c2131051ff
2 changed files with 22 additions and 10 deletions

View File

@ -57,7 +57,7 @@
"disk_size": formatDiskSize(dbInfo.disk_size)
});
if( config.vhost ) dbInfo.db_name = 'db';
if( config.vhost ) dbInfo.db_name = "api";
render( 'db', 'stats', dbInfo );
render( 'bulk', 'bulk', dbInfo );
@ -72,7 +72,7 @@
}
$.getJSON( config.baseURL + 'db', gotDb );
$.getJSON( config.baseURL + "api", gotDb );
$( '.csv' ).live('click', ( function( e ) {
window.location.href = csvUrl;

View File

@ -27,12 +27,24 @@
"to": "_list/urlencode/headers",
"from": "headers"
},
{
"to": "../..",
"from": "db"
},
{
"to": "../../*",
"from": "db/*"
}
{
"to": "./",
"from": "ddoc"
},
{
"to": "./",
"from": "api/_design/ddoc"
},
{
"to": "./*",
"from": "api/_design/ddoc/*"
},
{
"to": "../../",
"from": "api"
},
{
"to": "../../*",
"from": "api/*"
}
]