telize

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

commit e7087bcab78b39f112260fb06e109e4ef59fd3f1
parent f62b60785fd0514bd63cf8f99171ed5fc3729560
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun,  9 Jun 2019 18:37:30 +0200

Re-add a 'geoip' endpoint as an alias to the 'location' one.

Diffstat:
Mconf/telize.conf | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/conf/telize.conf b/conf/telize.conf @@ -15,11 +15,15 @@ domain * { static /ip request_ip static /jsonip request_json_ip + static /geoip request_location + dynamic ^/geoip/[a-f0-9\:.]*$ request_location static /location request_location dynamic ^/location/[a-f0-9\:.]*$ request_location restrict /ip get head restrict /jsonip get head + restrict /geoip get head + restrict ^/geoip/[a-f0-9\:.]*$ get head restrict /location get head restrict ^/location/[a-f0-9\:.]*$ get head @@ -27,6 +31,14 @@ domain * { validate callback v_callback } + params qs:get /geoip { + validate callback v_callback + } + + params qs:get ^/geoip/[a-f0-9\:.]*$ { + validate callback v_callback + } + params qs:get /location { validate callback v_callback }