commit 4ac506c1f829ae402c661dfc8153bff2cb2d04f5 parent 2faf3d439e3e8d7c226f3d5184475059c0c93470 Author: Frederic Cambus <fred@statdns.com> Date: Thu, 21 Apr 2022 00:01:44 +0200 Account for Kore 4.2 changes in the routing configuration. Diffstat:
M | conf/routes.conf | | | 63 | ++++++++++++++++++++++++++++++++------------------------------- |
1 file changed, 32 insertions(+), 31 deletions(-)
diff --git a/conf/routes.conf b/conf/routes.conf @@ -1,45 +1,46 @@ -route /ip request_ip -route /jsonip request_json_ip -route /geoip request_location -route /geoip/ request_location -route ^/geoip/[a-f0-9\:.]*$ request_location -route /location request_location -route /location/ request_location -route ^/location/[a-f0-9\:.]*$ request_location - -restrict /ip get head -restrict /jsonip get head -restrict /geoip get head -restrict /geoip/ get head -restrict ^/geoip/[a-f0-9\:.]*$ get head -restrict /location get head -restrict /location/ get head -restrict ^/location/[a-f0-9\:.]*$ get head +route /ip { + handler request_ip + methods get head +} -params qs:get /jsonip { - validate callback v_callback +route /jsonip { + handler request_location + methods get head + validate get callback v_callback } -params qs:get /geoip { - validate callback v_callback +route /geoip { + handler request_location + methods get head + validate get callback v_callback } -params qs:get /geoip/ { - validate callback v_callback +route /geoip/ { + handler request_location + methods get head + validate get callback v_callback } -params qs:get ^/geoip/[a-f0-9\:.]*$ { - validate callback v_callback +route ^/geoip/[a-f0-9\:.]*$ { + handler request_location + methods get head + validate get callback v_callback } -params qs:get /location { - validate callback v_callback +route /location { + handler request_location + methods get head + validate get callback v_callback } -params qs:get /location/ { - validate callback v_callback +route /location/ { + handler request_location + methods get head + validate get callback v_callback } -params qs:get ^/location/[a-f0-9\:.]*$ { - validate callback v_callback +route ^/location/[a-f0-9\:.]*$ { + handler request_location + methods get head + validate get callback v_callback }