13 lines
424 B
Elixir
13 lines
424 B
Elixir
defmodule GeoTherminatorWeb.MainLive.Index do
|
|
use GeoTherminatorWeb, :live_view
|
|
|
|
@impl true
|
|
def mount(_params, _session, socket) do
|
|
user = GeoTherminator.PumpAPI.Auth.Server.get_auth(GeoTherminator.PumpAPI.Auth.Server)
|
|
|
|
installations =
|
|
GeoTherminator.PumpAPI.Auth.Server.get_installations(GeoTherminator.PumpAPI.Auth.Server)
|
|
|
|
{:ok, assign(socket, user: user, installations: installations)}
|
|
end
|
|
end
|