SelectoComponents.QueryContract.Plug (selecto_components v0.4.8)

Plug endpoint for serving a Selecto query contract JSON document.

Host applications can mount this plug at whatever route makes sense for their domain. The plug accepts either a direct :domain option or a :resolver function that returns the domain for the current connection.