Skip to content

Commit 1d8f7f6

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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ defmodule HelloWeb.PageController do
66
alias Hello.Repo
77
alias Hello.WorldCache
88

9-
require Logger
10-
119
@random_max 10_000
1210

1311
plug :accepts, ~w(html json) when action == :fortunes

0 commit comments

Comments
 (0)