Skip to content

Commit 326dd3f

Browse files
committed
Return accepts plug just for fortunes
1 parent d0c61ef commit 326dd3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Elixir/phoenix/lib/hello_web/controllers/page_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule HelloWeb.PageController do
1010

1111
@random_max 10_000
1212

13-
plug :accepts, ~w(html json) #when action == :fortunes
13+
plug :accepts, ~w(html json) when action == :fortunes
1414

1515
def index(conn, _params) do
1616
json(conn, %{"TE Benchmarks\n" => "Started"})

0 commit comments

Comments
 (0)