Skip to content

Instantly share code, notes, and snippets.

@fiveisprime
Created October 21, 2014 21:50
Show Gist options
  • Select an option

  • Save fiveisprime/a9f3ca8d8ece0e442a98 to your computer and use it in GitHub Desktop.

Select an option

Save fiveisprime/a9f3ca8d8ece0e442a98 to your computer and use it in GitHub Desktop.
Iron Router with Cloud Storage on Modulus.
this.route('app-storage', {
path : '/app-storage/:path(*)',
where : 'server',
action: function () {
return this.response.end(
fs.readFileSync(path.join(process.env.CLOUD_DIR, this.params.path))
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment