diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-04 21:54:38 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-04 21:54:38 +0200 |
commit | a0f327140c4068afd46b264d24f767c4dd3d0f40 (patch) | |
tree | 13c0ccf3e9a56d91fa61c0252d32168b90a78260 /main.cpp | |
parent | ca1fc859f27560c7988f078cff89f40f1b6e2c0f (diff) |
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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>())); |