telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 400cf28dd0b51a5e6b93c13a2bd28108c56d8a0a
parent a15ef5c327b8eddb7b076169ced80588418e5b16
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  4 Oct 2018 22:42:21 +0200

Remove the default endpoint, and add 'ip' endpoint

Diffstat:
Mconf/telize.conf | 2+-
Asrc/ip.c | 11+++++++++++
Dsrc/telize.c | 11-----------
3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/conf/telize.conf b/conf/telize.conf @@ -11,5 +11,5 @@ domain * { accesslog telize.log - static / page + static /ip ip } diff --git a/src/ip.c b/src/ip.c @@ -0,0 +1,11 @@ +#include <kore/kore.h> +#include <kore/http.h> + +int ip(struct http_request *); + +int +ip(struct http_request *req) +{ + http_response(req, 200, NULL, 0); + return (KORE_RESULT_OK); +} diff --git a/src/telize.c b/src/telize.c @@ -1,11 +0,0 @@ -#include <kore/kore.h> -#include <kore/http.h> - -int page(struct http_request *); - -int -page(struct http_request *req) -{ - http_response(req, 200, NULL, 0); - return (KORE_RESULT_OK); -}