Created
October 21, 2014 21:50
-
-
Save fiveisprime/a9f3ca8d8ece0e442a98 to your computer and use it in GitHub Desktop.
Iron Router with Cloud Storage on Modulus.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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