USERNAMES

This commit is contained in:
Dominic Zimmer
2020-04-17 02:48:40 +02:00
parent 364d155f9d
commit 8fe6fa4884
5 changed files with 22 additions and 11 deletions

View File

@@ -20,9 +20,9 @@ this is the base site
<script>
document.getElementById("btn_dunno").onclick = async function (e) {
let text = document.getElementById("some_input").value;
let data = {"sessionid": text};
let data = {"username": text};
await fetch('api/join_session', {
await fetch('/newclient', {
method: 'POST',
body: JSON.stringify(data),
})