Expand description
HTTP handlers for Spark: the /_spark/update round-trip endpoint and the
/_spark/spark.js runtime asset.
Constants§
Functions§
- channel_
auth POST /_spark/auth— stub auth endpoint for private channels. v1 always returns 200 with a dummy auth payload. Real authorization lands in v1.1 via aSparkAuthorizertrait.- runtime_
js GET /_spark/spark.js— serve the embedded JS runtime.- update
POST /_spark/update— decode each component’s snapshot, apply property writes, dispatch the requested method, and return refreshed HTML + new snapshots.