ScalesCmsWeb.PersistedStateController (scales_cms v0.2.0)

Copy Markdown

Controller for persisting UI state to the session.

LiveView cannot directly write to the Plug session because it runs over WebSockets. This controller provides an HTTP endpoint that allows the client to persist UI state changes to the session.

Summary

Functions

Updates a persisted UI state in the Plug session.

Functions

update(conn, arg2)

Updates a persisted UI state in the Plug session.

Expects JSON:

{ "name": "sidebar_open", "value": true }