These are chat archives for gitbucket/gitbucket

9th
Jun 2014
Naoki Takezoe
@takezoe
Jun 09 2014 22:45
I'm improving plug-in API. Current style is:
var plugin = new Plugin();

plugin.addGlobalAction('/test', function(request, response){
  return "<h1>This is Test Plug-In</h1>";
});

PluginSystem.install("test", plugin);
Also it's possible to disable plug-in as below:
PluginSystem.uninstall("test");