Does express provide a mechanism similar to hapi's server.bind()?
<p>I am working in an environment where only express is available.  With hapi I frequently use the server.bind() function to ensure that a resource is available in all my routes.  However, I am unable to find analogous functionality for express.  </p>

<p>How are resources referenced across routes in express?</p>

<p>Example hapi code:</p>

<pre><code>var gui_db = new Sqlite3.Database('./gui_test.sqlite');
var server = new Hapi.Server();
server.connection({ port: 6000 });
server.bind({gui_db: gui_db});
</code></pre>

<p>In another context I can refer to <code>gui_db</code> via <code>this.gui_d</code>b.</p>