~ihabunek/triglav

ref: 3a62b8feb3be418cf9f3fb176ac6c84a36e66a2f triglav/lib/triglav_web/controllers/home_controller.ex -rw-r--r-- 340 bytes
3a62b8feIvan Habunek Validate tags on platforms 8 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