open icon indicating copy to clipboard operation
open copied to clipboard

Youido improvements

Open glutamate opened this issue 6 years ago • 1 comments

  • [ ] 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.

glutamate avatar Apr 24 '18 21:04 glutamate

@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
  }

balajirrao avatar Sep 17 '18 20:09 balajirrao