ac1919 Kullanımınızda bir problem yok, sadece method yerine type yazmışsınız.
Promise de kullanabilirsiniz:
$.ajax({
url: route,
method: "GET"
})
.done(function(data, textStatus, jqXHR) {
// başarılı...
})
.fail(function(jqXHR, textStatus, errorThrown) {
// hata...
})
.always(function(data | jqXHR, textStatus, jqXHR | errorThrown) {
// Daima ateşlenir. Eski complete() ile aynı işi yapıyor
})
.then(
function(data, textStatus, jqXHR) {
// Başarılı... (done)
},
function(jqXHR, textStatus, errorThrown) {
// Başarısız... (fail)
}
);