Fixed ip2

This commit is contained in:
Alexander Munch-Hansen 2018-05-20 23:49:08 +02:00
parent 3dceadb07d
commit 805966baeb

View File

@ -227,7 +227,7 @@ function getBotMove(board) {
$.ajax({ $.ajax({
type : "POST", type : "POST",
async: false, async: false,
url : "http://127.0.0.1:5000/bot_move", url : "http://10.56.0.21:5000/bot_move",
data: JSON.stringify(data), data: JSON.stringify(data),
success: function(data) { success: function(data) {
result = data; result = data;
@ -240,7 +240,7 @@ function getBotMove(board) {
function getRequest() { function getRequest() {
$.ajax({ $.ajax({
url: 'http://127.0.0.1:5000/get_board', url: 'http://10.56.0.21:5000/get_board',
async: false, async: false,
dataType: 'JSONP', dataType: 'JSONP',
data: { data: {
@ -267,7 +267,7 @@ function postRequest(prev_board, board, roll, total_roll, quad) {
$.ajax({ $.ajax({
type : "POST", type : "POST",
async: false, async: false,
url : "http://127.0.0.1:5000/post_board", url : "http://10.56.0.21:5000/post_board",
data: JSON.stringify(data), data: JSON.stringify(data),
success: function(data) { success: function(data) {
result = data; result = data;