34 lines
1.3 KiB
XML
Executable File
34 lines
1.3 KiB
XML
Executable File
<?xml version="1.0"?>
|
|
<!--
|
|
/**
|
|
* Plumrocket Inc.
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the End-user License Agreement
|
|
* that is available through the world-wide-web at this URL:
|
|
* http://wiki.plumrocket.net/wiki/EULA
|
|
* If you are unable to obtain it through the world-wide-web, please
|
|
* send an email to support@plumrocket.com so we can send you a copy immediately.
|
|
*
|
|
* @package Plumrocket_GeoIPLookup
|
|
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
|
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
|
*/
|
|
-->
|
|
|
|
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
|
|
<route url="/V1/prgeoiplookup/:ip/params/:params" method="GET">
|
|
<service class="Plumrocket\GeoIPLookup\Api\GeoIPLookupInterface" method="getGeoIpData"/>
|
|
<resources>
|
|
<resource ref="anonymous"/>
|
|
</resources>
|
|
</route>
|
|
<route url="/V1/prgeoiplookup/:ip" method="GET">
|
|
<service class="Plumrocket\GeoIPLookup\Api\GeoIPLookupInterface" method="getGeoIpDataWithDefaultServices"/>
|
|
<resources>
|
|
<resource ref="anonymous"/>
|
|
</resources>
|
|
</route>
|
|
</routes>
|