PhoenixKitSync.Routes (PhoenixKitSync v0.3.0)

Copy Markdown View Source

Route module for PhoenixKit Sync non-admin routes.

Provides API endpoints and WebSocket forward for cross-site sync communication. Called by compile_module_public_routes/1 in PhoenixKit's integration.ex via the route_module/0 callback.

Admin LiveView routes are auto-generated from admin_tabs/0 live_view: tuples.

Every route here is declared with log: false: the router's own line for a dispatched request prints its parameters, and these requests carry their credential in them (auth_token_hash in the body, code or token in the socket's query). The host's :filter_parameters does not name those, so the line is not written at all.

Summary

Functions

generate(url_prefix)