summaryrefslogtreecommitdiffstats
path: root/etherpad/src/plugins/fileUpload/hooks.js
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad/src/plugins/fileUpload/hooks.js')
-rw-r--r--etherpad/src/plugins/fileUpload/hooks.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/etherpad/src/plugins/fileUpload/hooks.js b/etherpad/src/plugins/fileUpload/hooks.js
new file mode 100644
index 0000000..0948c17
--- /dev/null
+++ b/etherpad/src/plugins/fileUpload/hooks.js
@@ -0,0 +1,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()})]];
+}