pre-baked Route Auth value

Added forwardUrl alias for `PluginR "browserid" []` as in other plugins
(e.g. GoogleEmail2 and OpenID).
This commit is contained in:
Артур Файзрахманов 2014-08-03 16:02:52 +06:00
parent adc259a8e8
commit 13f0eb3895

View File

@ -9,6 +9,7 @@ module Yesod.Auth.BrowserId
, BrowserIdSettings , BrowserIdSettings
, bisAudience , bisAudience
, bisLazyLoad , bisLazyLoad
, forwardUrl
) where ) where
import Yesod.Auth import Yesod.Auth
@ -28,8 +29,10 @@ import Data.Default
pid :: Text pid :: Text
pid = "browserid" pid = "browserid"
complete :: Route Auth forwardUrl :: AuthRoute
complete = PluginR pid [] forwardUrl = PluginR pid []
complete = forwardUrl
-- | A settings type for various configuration options relevant to BrowserID. -- | A settings type for various configuration options relevant to BrowserID.
-- --