Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youido improvements #83

Open
7 tasks
glutamate opened this issue Apr 24, 2018 · 1 comment
Open
7 tasks

Youido improvements #83

glutamate opened this issue Apr 24, 2018 · 1 comment

Comments

@glutamate
Copy link
Member

  • Remove dependency on scotty and create a wai application instead
  • Support for DB pools
  • custom 404/500 handler
  • support for custom session storage so we could use something persistent like redis
  • two factor authentication with the Google authenticator app
  • updating pages with PJAX
  • support for modals where content is sent via html over ajax.
@balajirrao
Copy link
Collaborator

@glutamate, regarding "Support for DB pools", what exactly do you have in mind ? Since Youido never deals with DBs is confusing me.

Also, regarding "custom 404/500 handler", we have , _notFoundHtml :: Html () in below, which would count as a custom 404 handler ?

data Youido auth m = Youido
  { _handlers :: [Handler m] -- ^ list of handlers
  , _notFoundHtml :: Html () -- ^ default, if nothing found
  , _wrapper :: auth -> (Html () -> Html ()) -- ^ wrapper for Html
  , _lookupUser:: Request -> Email-> ByteString-> IO (Maybe auth)
  , _port :: Int
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants