This commit is contained in:
2023-07-26 16:04:23 +03:00
parent 4d07d613ad
commit 5586f73cae
4 changed files with 73 additions and 11 deletions

View File

@@ -46,3 +46,27 @@ function createRoute(){
});
}
function getRoute(){
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/routes/get_routes/',
type: "POST",
// async: true,
cache: false,
processData: false,
contentType: false,
// enctype: 'json',
// data: formData,
success: function(data){
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
},
error: function (data, exception){
console.log(101)
}
});
}