<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/meta/settings-sync" method="POST">
        <service class="Meta\BusinessExtension\Api\SettingsWebhookListenerInterface"
                 method="processSettingsWebhookRequest"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
    <route url="/V1/meta/settings-sync/:externalBusinessId" method="GET">
        <service class="Meta\BusinessExtension\Api\SettingsWebhookListenerInterface"
                 method="getCoreConfig"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
</routes>

