added rooms operations

joining, creating new if full
This commit is contained in:
Wenszel
2021-03-14 19:38:37 +01:00
parent 12372ef4f2
commit 6ffc7fb3b8
6 changed files with 50 additions and 17 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ const NameInput = () => {
}
const handleButtonClick = () => {
axios.post('http://localhost:3000/room/add')
axios.post('http://localhost:3000/room/add',{
name: inputValue
},{
"Content-Type": "application/json"
})
}
return(
<div>