Feat: end turn endpoint
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
{{define "room"}}
|
||||
<div id="hello-user">
|
||||
<p>Hello {{.State.Username}};</p>
|
||||
<p>Turn of the {{.Room.TeamTurn}} team</p>
|
||||
<p>
|
||||
{{if eq .State.Team ""}}
|
||||
join the team!
|
||||
@ -26,4 +27,7 @@
|
||||
<div id="cardtable">
|
||||
{{template "cardtable" .Room}}
|
||||
</div>
|
||||
<div>
|
||||
<button hx-get="/end-turn" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">End Turn</button>
|
||||
</div>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user