Packages

Adds helpful extras to Guardian like default mailer support, as well as out of the box controllers and routes

Current section

Files

Jump to
sentinel lib sentinel helpers router_helper.ex
Raw

lib/sentinel/helpers/router_helper.ex

defmodule Sentinel.RouterHelper do
def helpers do
Module.concat(Application.get_env(:sentinel, :router), Helpers)
end
def endpoint do
Application.get_env(:sentinel, :endpoint)
end
def configured? do
Application.get_env(:sentinel, :router) && endpoint
end
end