Unable to access controller using AJAX in magento 2

I Have a very basic ajax function, where i want to access to the controller using AJAX.Below is the code. <script type=”text/javascript”> require([‘jquery’, ‘Magento_Customer/js/customer-data’, ‘jquery/jquery.cookie’], function($,customerData){ $(“.verifybtn”).click(function() { jQuery.ajax({ url: “<?php echo $block->getUrl(‘cartamount/checkzip/index’); ?>”, method: “POST”, data: 1, success: function (response) { alert(response); } }); }); }); </script> My controller file location is ( app/code/Ayakil/CartAmount/Controller/Checkzip/Index.php)…