<?xml version="1.0"?>
<!--
/**
 * BSS Commerce Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://bsscommerce.com/Bss-Commerce-License.txt
 *
 * @category   BSS
 * @package    Bss_CompanyAccount
 * @author     Extension Team
 * @copyright  Copyright (c) 2020-2021 BSS Commerce Co. ( http://bsscommerce.com )
 * @license    http://bsscommerce.com/Bss-Commerce-License.txt
 */
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/bsscommerce/companyaccount/subuser/delete/:id" method="DELETE">
        <service class="Bss\CompanyAccount\Api\SubUserRepositoryInterface" method="deleteById"/>
        <resources>
            <resource ref="Bss_CompanyAccount::sub_user_delete"/>
        </resources>
    </route>
    <route url="/V1/bsscommerce/companyaccount/subuser/create" method="PUT">
        <service class="Bss\CompanyAccount\Api\SubUserRepositoryInterface" method="create"/>
        <resources>
            <resource ref="Bss_CompanyAccount::sub_user_add"/>
        </resources>
    </route>
</routes>
