jxxcarlson/codeinstaller-rulesets/1.0.0

NOTE: the latest version is 1.0.1

RuleSet.Add

Rules for adding pages and for adding magic-link authentication to a Lamdera app.

pages : List ( String, String ) -> List Rule
Add pages to a Lamdera app:


    RuleSet.Add.pages [ ("QuotesRoute", "quotes"), ("QuotesRoute", "jokes") ]


adds pages for quotes and jokes to the app.  The routes are `QuotesRoute` and `QuotesRoute`
and the paths for the routes are `quotes` and `jokes`, respectively.
magicLinkAuth : String -> String -> String -> List Rule
Add magic-link authentication to a Lamdera app:


    configMagicLinkAuth "JC Maxwell" "maxwell" "[email protected]"


This configures the base app with magic-link authentication, where
use `maxwell` is the adminstrator.