andzdroid/mongo-express — pull request #12 by RG72 (2013-03-23 15:59:56+00:00)
Title: Using mongo-express as a module

default baseUrl =>'/'.
All redirect, and routes use baseUrl.
Now, we can use great mongo-express in ours express apps:
Example
1) change baseUrl to '/db/'

2)At your application, add following lines
var mongoExpress=require('mongo-express');
app.post('/db/*',mongoExpress);
app.get('/db/*',mongoExpress);

//with your Auth check
//var mongoExpress=require('mongo-express');
//app.post('/db/*',checkRights,mongoExpress);
//app.get('/db/*',checkRights,mongoExpress);