blob: 0948c17c2a21e937f5e4bd6e4a73fceea4ee2c0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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()})]];
}
|