Tensorflow

This commit is contained in:
Johnathon Slightham
2021-02-20 05:50:53 -05:00
parent d9da392ae8
commit 57b9827e64
5 changed files with 384 additions and 54 deletions

View File

@@ -15,7 +15,7 @@ export default {
},
methods: {
createRoom() {
this.axios.get("http://localhost:4000/rooms/add").then((res) => {
this.axios.get("http://50.100.180.37:4000/rooms/add").then((res) => {
let id = res.data._id;
let playerId = res.data.playerId;
this.setCookie("playerId", playerId, 1);
@@ -24,7 +24,7 @@ export default {
},
joinRoom() {
console.log(this.room);
this.axios.post("http://localhost:4000/rooms/join", this.room).then((res) => {
this.axios.post("http://50.100.180.37:4000/rooms/join", this.room).then((res) => {
let playerId = res.data._id;
this.setCookie("playerId", playerId, 1);
this.$router.push({path: `game/${this.room.id}`});