<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/amasty_customer_login/token" method="POST">
        <service class="Amasty\CustomerLogin\Api\CustomerTokenInterface" method="createCustomerToken"/>
        <resources>
            <resource ref="Amasty_CustomerLogin::admin_login" />
            <resource ref="Amasty_CustomerLogin::admin_login_log" />
        </resources>
    </route>
    <route url="/V1/amasty_customer_login/loggedin/:loggedInId" method="PUT">
        <service class="Amasty\CustomerLogin\Api\LoggedInRepositoryInterface" method="save"/>
        <resources>
            <resource ref="Amasty_CustomerLogin::admin_login_log" />
        </resources>
    </route>
    <route url="/V1/amasty_customer_login/loggedin" method="GET">
        <service class="Amasty\CustomerLogin\Api\LoggedInRepositoryInterface" method="getById"/>
        <resources>
            <resource ref="Amasty_CustomerLogin::admin_login_log" />
        </resources>
    </route>
    <route url="/V1/amasty_customer_login/loggedin/all" method="GET">
        <service class="Amasty\CustomerLogin\Api\LoggedInRepositoryInterface" method="getList" />
        <resources>
            <resource ref="Amasty_CustomerLogin::admin_login_log" />
        </resources>
    </route>
</routes>
