defmodule WebSpa.PageController do
  use WebSpa.Web, :controller

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

defmodule WebSpa.PageController do
  use WebSpa.Web, :controller

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

Use |> operator for serving response
Use |> operator for serving response

korczis/the-scratch,korczis/the-scratch,korczis/the-scratch