<?xml version="1.0"?>
<!--
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_GoogleTagManager
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/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/mpGoogleTagManager/code/:type/:action/:id" method="GET">
        <service class="Mageplaza\GoogleTagManager\Api\CodeRepositoryInterface" method="getCode"/>
        <resources>
            <resource ref="anonymous" />
        </resources>
    </route>
    <route url="/V1/mpGoogleTagManager/GTM/home/code" method="GET">
        <service class="Mageplaza\GoogleTagManager\Api\CodeRepositoryInterface" method="getGTMCodeHome"/>
        <resources>
            <resource ref="anonymous" />
        </resources>
    </route>
    <route url="/V1/mpGoogleTagManager/head/:type" method="GET">
        <service class="Mageplaza\GoogleTagManager\Api\CodeRepositoryInterface" method="getHead"/>
        <resources>
            <resource ref="anonymous" />
        </resources>
    </route>
</routes>
