import("etherpad.log"); import("faststatic"); import("etherpad.utils.*"); import("etherpad.globals.*"); import("dispatch.{Dispatcher,PrefixMatcher,forward}"); import("plugins.fileUpload.controllers.fileUpload"); function handlePath() { return [[PrefixMatcher('/ep/fileUpload/'), forward(fileUpload)], [PrefixMatcher('/up/'), faststatic.directoryServer('/plugins/fileUpload/upload/', {cache: isProduction()})]]; }