Tiny stateful HTTP API for nudging a Godot slide deck during a talk.
{ "next_slide": false, "count": 0, "threshold": 1 }
| Path | Effect |
|---|---|
GET /state | Read state, no side effects. |
GET /advance | Set next_slide = true. |
GET /poll | Return {next_slide} and reset it to false. The Godot client polls this. |
GET /tick | count++. Auto-advances when count >= threshold (resets count). |
GET /threshold/N | Set threshold to integer N. |
GET /reset | Reset everything to defaults. |
Share /click with the audience — each device gets a big button that fires /tick once every 5 minutes (cooldown stored in localStorage, survives page reloads).