async function renameSongFile(songFileName) {
let newSongFileName = prompt("What is the new file name you want?", songFileName)
+
+ if (newSongFileName == null) { return } // this means they cancelled
// TODO: make some kind of check that it's a valid URL
//
let response = await fetch("/api/files/rename/" + songFileName + "/" + newSongFileName, {
async function createRoomWithName() {
let name = prompt("Name the room")
+ if (name == null) { return } // this means they cancelled
+
let response = await fetch("/api/rooms/add/" + name, {
method: "PUT",
body: JSON.stringify(["0"])