Add a public page to the application
Add a protected page to the application
Once all the pages are added to the application, we can change it into a record
suitable for the Browser.application function.
Finalize the Spa application into a record suitable for the Browser.application
toDocument is a function that convert a view to a Browser.Document
appWithPages
|> Spa.application { toDocument = View.toDocument }
|> Browser.application
Bootstrap a Spa application