telize

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

routes.conf (988B)


      1 route		/ip				request_ip
      2 route		/jsonip				request_json_ip
      3 route		/geoip				request_location
      4 route		/geoip/				request_location
      5 route		^/geoip/[a-f0-9\:.]*$		request_location
      6 route		/location			request_location
      7 route		/location/			request_location
      8 route		^/location/[a-f0-9\:.]*$	request_location
      9 
     10 restrict	/ip				get head
     11 restrict	/jsonip				get head
     12 restrict	/geoip				get head
     13 restrict	/geoip/				get head
     14 restrict	^/geoip/[a-f0-9\:.]*$		get head
     15 restrict	/location			get head
     16 restrict	/location/			get head
     17 restrict	^/location/[a-f0-9\:.]*$	get head
     18 
     19 params qs:get /jsonip {
     20 	validate	callback	v_callback
     21 }
     22 
     23 params qs:get /geoip {
     24 	validate	callback	v_callback
     25 }
     26 
     27 params qs:get /geoip/ {
     28 	validate	callback	v_callback
     29 }
     30 
     31 params qs:get ^/geoip/[a-f0-9\:.]*$ {
     32 	validate	callback	v_callback
     33 }
     34 
     35 params qs:get /location {
     36 	validate	callback	v_callback
     37 }
     38 
     39 params qs:get /location/ {
     40 	validate	callback	v_callback
     41 }
     42 
     43 params qs:get ^/location/[a-f0-9\:.]*$ {
     44 	validate	callback	v_callback
     45 }