title: Serve static files from google-cloud-storage through express middleware
body: <p>I have an express app hosted on google <code>AppEngine</code> which uses the express static middleware. I'd like to store the static files on <code>google-cloud-storage</code>, and to be able to switch from regular filesystem to <code>google-cloud-storage</code> without too much modification.</p>
  
  <p>I was thinking of writing a middleware:</p>
  
  <ul>
  <li>using the <a href="https://github.com/GoogleCloudPlatform/google-cloud-node" rel="nofollow noreferrer">Google Cloud client library for Node.js</a>, something like <a href="https://stackoverflow.com/questions/32976838/express-caching-image-stream-from-google-cloud-storage">Express caching Image stream from Google Cloud Storage</a>) ;</li>
  <li>or acting as a proxy (mapping pathnames to raw <code>google-cloud-storage</code> urls).</li>
  </ul>
  
  <p>Is there an easier/cleaner way to do that ?</p>