<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lash v{{.Version}}</title>
</head>

<body>

<form id="tform" action="localpage.html" method="POST">
  <input name="token" id="token" placeholder="Enter token">
  <button type="submit">Go</button>
</form>

</body>

<script>
await fetch('/api/receive-token', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ token: USER_TOKEN })
});
</script>

</html>
