Skip to content

Instantly share code, notes, and snippets.

@scripting

scripting/filter.js

Created Oct 31, 2020
Embed
What would you like to do?
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