summaryrefslogtreecommitdiffstats
path: root/trunk/etherpad/src/plugins/testplugin/main.js
blob: f5d736b69cd14bbd15d8fa6841d6ae924a162103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import("etherpad.log");
import("etherpad.admin.plugins");
import("dispatch.{Dispatcher,PrefixMatcher,forward}");
import("plugins.testplugin.controllers.testplugin");

hooks = ['serverStartup', 'serverShutdown', 'handlePath'];
description = 'Test Plugin';

function install() {
 log.info("Installing testplugin");
}

function uninstall() {
 log.info("Uninstalling testplugin");
}

function serverStartup() {
 log.info("Server startup for testplugin");
}

function serverShutdown() {
 log.info("Server shutdown for testplugin");
}

function handlePath() {
 return [[PrefixMatcher('/ep/testplugin/'), forward(testplugin)]];
}