Hello everyone!
The API of the stock price checker project works as expected. But when using the front-end, the ajax request doesn’t even enter the API, and I can’t find the reason why it doesn’t work.
$('#testForm').submit(function(e) {
$.ajax({
url: '/api/stock-prices',
type: 'get',
data: $('#testForm').serialize(),
success: function(data) {
$('#jsonResult').text(JSON.stringify(data));
}
});
e.preventDefault();
});
This code was working for a previous project (issue tracker), but not know. Any ideas why? Here’s the project page.