Created
October 31, 2020 19:13
-
-
Save scripting/a2d4ab4275a787e912f02e0e28d354da to your computer and use it in GitHub Desktop.
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
const folder = "/root/Dropbox/Miami/littleoutliner/publicFiles/users/"; | |
var url = options.httpRequest.url; | |
var splits = url.split ("?"); | |
url = splits [0]; | |
splits = url.split ("/"); | |
var username = splits [1], fname = splits [2]; | |
if ((username === undefined) || (fname === undefined)) { //tell pagePark we're not handling it | |
callback (undefined, {flNotHandled: true}); | |
} | |
else { | |
var f = folder + username + "/myOutlines/" + fname; | |
console.log (f); | |
options.serveLocalFile (f); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment