summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 6fa7504..5d5af1d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -6,6 +6,7 @@
#include "telnetd.h"
#include "http_static.h"
+#include "http_json.h"
#include <iostream>
#include <vector>
@@ -39,6 +40,9 @@ int main(int argc, char **argv) {
HTTP::Static static_files("static");
httpd.add_handler("static", static_files);
httpd.add_handler("", static_files);
+
+ HTTP::JSON http_json;
+ httpd.add_handler("list", http_json);
telnet::Server telnetd(io_service, tcp::endpoint(tcp::v6(), config::vm["audist.telnetd_port"].as<int>()));