feat: release hand endpoint & button

This commit is contained in:
efim
2023-11-12 18:24:32 +00:00
parent b90fcc3f20
commit b1f2e896b9
5 changed files with 51 additions and 10 deletions

View File

@@ -35,7 +35,7 @@
id="roomTextContainer"
class="bg-blue-200"
hx-ext="sse"
sse-connect="/rooms/subscribe?roomName=test"
sse-connect="/rooms/subscribe?roomName={{ .Room.Name }}"
>
{{ block "simpleRoomShow" .Room }}
<!-- TODO use template, not block, have only 'loader' in base place -->
@@ -53,6 +53,11 @@
{{ .Name }}
</button>
{{ end }}
<button hx-get="/rooms/releaseHand"
class="bg-white rounded border-yellow-700 border-4"
>
Release Hand
</button>
</div>
</div>
</body>