deploy1 6 years ago
parent
commit
eff0927b7a
1 changed files with 10 additions and 6 deletions
  1. 10 6
      lib/actionsfilters.js

+ 10 - 6
lib/actionsfilters.js

@@ -1,4 +1,4 @@
-module.exports = function create_tool(){
+module.exports = function create_tool() {
 
     var async = require("async");
     var actions = {};
@@ -86,6 +86,12 @@ module.exports = function create_tool(){
         }, cb)
     }
 
+    function list_filter_and_actions() {
+        return {
+            "filters": filters,
+            "actions": actions
+        }
+    }
 
 
     return {
@@ -93,12 +99,10 @@ module.exports = function create_tool(){
         do_action: do_action,
         add_filters: add_filters,
         apply_filters: apply_filters,
-        apply_filters_map: apply_filters_map
+        apply_filters_map: apply_filters_map,
+        list_filter_and_actions: list_filter_and_actions
 
     };
 
 
-}
-
-
- 
+}