]> source.dussan.org Git - rspamd.git/commit
[Feature] Allow plugins to register webui handlers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Jan 2017 18:58:14 +0000 (18:58 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Jan 2017 19:01:02 +0000 (19:01 +0000)
commit02b65beaed87b4ffe5a5582b1c3d8b8f661a5990
treece291ef03b895eb6fde2444a292d24f7be30b818
parent7136e6f29da7cb300e65b35578e4e04ab9d65a65
[Feature] Allow plugins to register webui handlers

Example of usage:

~~~lua
rspamd_plugins.multimap = {
  webui = {
    test = {
      handler = function(task, conn)
        conn:send_ucl({success = true})
      end
    }
  }
}
src/controller.c