Skip to content

Commit 944600b

Browse files
authored
fix: controller (#101)
1 parent 4da5c00 commit 944600b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/pearl_web/controllers/page_controller.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ defmodule PearlWeb.PageController do
1212
end
1313

1414
def gato(conn, _params) do
15+
cat_html_path =
16+
:pearl
17+
|> :code.priv_dir()
18+
|> to_string()
19+
|> Path.join("static/cat.html")
20+
1521
conn
1622
|> put_resp_content_type("text/html")
17-
|> send_file(200, "priv/static/cat.html")
23+
|> send_file(200, cat_html_path)
1824
end
1925
end

0 commit comments

Comments
 (0)