I used jQuery in the following code to call a URL and send values by json to that url
$(document).ready(function(){
$('input#receive_count').click(function(event){
var time = $('select#urgent_mail_start_time_year');
load({time: time});
});
function load(dataParams){
$.ajax({
url: '/api/x/shop/receive/get',
method: 'get',
datatype: 'json',
data: dataParams,
success: function(html){
alert("in js");
}
});
}
});
In Symfony routing.yml, I have declared this url /api/x/shop/receive/get.:sf_format
but it returns an error telling that the url does not match.
Can you suggest a way to solve this?