Plug Locale Root Redirect v0.3.1 PlugLocaleRootRedirect View Source
A Plug that uses PlugBest to map '/' route to a path based on the Accept-Language
HTTP header.
Link to this section Summary
Link to this section Types
Link to this type
language() View Source
Link to this type
opts() View Source
Link to this section Functions
Link to this function
call(conn, locales)
View Source
call(conn, locales)
View Source
call(Plug.Conn.t(), [atom()]) :: Plug.Conn.t()
call(Plug.Conn.t(), [atom()]) :: Plug.Conn.t()
Call the plug.
Link to this function
init(opts) View Source
Initialize the plug with a list of supported locales.
Link to this function