mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
12 lines
214 B
Elixir
12 lines
214 B
Elixir
|
defmodule PhilomenaWeb.Plugs.RenderTime do
|
||
|
import Plug.Conn
|
||
|
|
||
|
# No options
|
||
|
def init([]), do: false
|
||
|
|
||
|
# Assign current time
|
||
|
def call(conn, _opts) do
|
||
|
conn |> assign(:start_time, Time.utc_now())
|
||
|
end
|
||
|
end
|