feat(api): FRO-14 Create Game

Added functionality to create Game so that it creates a game in the Backend
This commit is contained in:
LQ63
2025-12-10 14:57:37 +01:00
parent e2f8dc23ab
commit edb875e950
2 changed files with 13 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ const onSubmit = () => {
loginError.value = ''
axios.post(`${api}/login`, {username: username.value, password: password.value}, {withCredentials: true}).then((response) => {
uInfo.setUserInfo(response.data.user.username, response.data.user.id)
router.push("/")
router.push("/mainmenu")
}).catch(() => {
loginError.value = 'Invalid username or password'
}).finally(() =>