summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-23 10:13:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-23 10:13:01 +0000
commitd1e49accf9ee939b10e173c985de8b8d58859296 (patch)
tree40d397f1e678096cbb6eedb4291b6388345b27d7 /src/controller.c
parentf296613168232ad87b8c0953c4b883419e9b7223 (diff)
downloadrspamd-d1e49accf9ee939b10e173c985de8b8d58859296.tar.gz
rspamd-d1e49accf9ee939b10e173c985de8b8d58859296.zip
[Feature] Show map URLs in webui
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c
index f5a624b7c..b20e6a8f7 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -794,13 +794,15 @@ rspamd_controller_handle_maps (struct rspamd_http_connection_entry *conn_ent,
obj = ucl_object_typed_new (UCL_OBJECT);
ucl_object_insert_key (obj, ucl_object_fromint (map->id),
- "map", 0, false);
+ "map", 0, false);
if (map->description) {
ucl_object_insert_key (obj, ucl_object_fromstring (map->description),
"description", 0, false);
}
+ ucl_object_insert_key (obj, ucl_object_fromstring (map->uri),
+ "uri", 0, false);
ucl_object_insert_key (obj, ucl_object_frombool (editable),
- "editable", 0, false);
+ "editable", 0, false);
ucl_array_append (top, obj);
cur = g_list_next (cur);