mongo rest bridge middleware