public/js/game.js
//send ajax requiest to gamesRoute to update the mlab database
send ajax requiest to gamesRoute to update the mlab database
send ajax requiest to gamesRoute to update the mlab database
function gameStatus(gameStatus){
  $.ajax({
      type: 'PUT',
      url: gameStatus,
      success: function(result) {
           console.log("updating score successful");
           console.log(result)
          }
    });
}
function gameStatus ( gameStatus ) { $ . ajax ( { type : 'PUT' , url : gameStatus , success : function ( result ) { console . log ( "updating score successful" ) ; console . log ( result ) } } ) ; }
send ajax requiest to gamesRoute to update the mlab database
send ajax requiest to gamesRoute to update the mlab database
//this is the DOG CEO api //documentation is at https://dog.ceo/dog-api/