<?xml version="1.0" ?>
<!--
  ~ Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved.
  ~ https://opensource.org/licenses/OSL-3.0  Open Software License (OSL 3.0)
  ~ soon/module-guest-product-alert
  ~ tchausson <tchausson@kaliop.com> <dt@kaliop.com>
  -->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route method="GET" url="/V1/soon-guestproductalert/subscribeByEmail">
        <service class="Soon\GuestProductAlert\Api\AlertInterface" method="subscribeByEmail"/>
        <resources>
            <resource ref="Soon_GuestProductAlert::soon_guestproductalert_subscribe"/>
        </resources>
    </route>
    <route method="GET" url="/V1/soon-guestproductalert/subscribeByCustomerId">
        <service class="Soon\GuestProductAlert\Api\AlertInterface" method="subscribeByCustomerId"/>
        <resources>
            <resource ref="Soon_GuestProductAlert::soon_guestproductalert_subscribe"/>
        </resources>
    </route>
</routes>
