~ihabunek/triglav

ref: 248d445efaf6ff9a19f9fc8c8ed4359a87aeb85b triglav/lib/triglav_web/controllers/home_controller.ex -rw-r--r-- 340 bytes
248d445eIvan Habunek Data status page 1 year, 3 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