ShtukbaseStandard
package file→ .shtukbase/packages/lenses/kit/server/foreign.html

kit/server/foreign.html

5 lines, 473 B.

  1. <!doctype html><meta charset="utf-8"><title>f</title><div id="out">none</div>
  2. <script>
  3. fetch('http://127.0.0.1:8791/_api', { method: 'POST', headers: { 'content-type': 'text/plain' }, body: JSON.stringify({ do: 'patch', path: 'questions/q2.md', set: { status: 'hacked' } }) })
  4. .then((r) => r.text()).then((t) => { document.getElementById('out').textContent = 'answer: ' + t; }, (e) => { document.getElementById('out').textContent = 'blocked: ' + e.message; });
  5. </script>