~ihabunek/triglav

ref: 679690ab4802d018b56a1a4ef21d50e8842f3078 triglav/lib/triglav_web/controllers/home_controller.ex -rw-r--r-- 340 bytes
679690abIvan Habunek Use stored distance in validator 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
defmodule TriglavWeb.HomeController do
  use TriglavWeb, :controller

  alias Triglav.Zet.Osmosis

  def index(conn, _params) do
    render(conn, "index.html")
  end

  def data(conn, _params) do
    replication_changes = Osmosis.list_replication_changes()

    render(conn, "data.html", replication_changes: replication_changes)
  end
end