mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 15:08:00 +01:00
11 lines
212 B
Elixir
11 lines
212 B
Elixir
defmodule PhilomenaWeb.RenderTimePlug 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
|