summaryrefslogtreecommitdiff
path: root/server/web/index.gohtml
diff options
context:
space:
mode:
Diffstat (limited to 'server/web/index.gohtml')
-rw-r--r--server/web/index.gohtml26
1 files changed, 0 insertions, 26 deletions
diff --git a/server/web/index.gohtml b/server/web/index.gohtml
deleted file mode 100644
index d7a90b4..0000000
--- a/server/web/index.gohtml
+++ /dev/null
@@ -1,26 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
-</head>
-<body>
-
-<script>
- const start = async () => {
- const game = await fetch("/api/game/create", {
- method: "POST",
- })
- const gameId = await game.text()
- const connection = new WebSocket(`/api/game/${gameId}/connect`)
- connection.addEventListener("message", (ev) => {
- console.debug(JSON.parse(ev.data))
- })
- }
- start()
-</script>
-</body>
-</html> \ No newline at end of file