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:
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user