module Controller.Index ( getIndex , signOut ) where import Web.Scotty import Network.HTTP.Types.Status (ok200) import Conf (Conf(..)) import qualified LoginSession import qualified Model.Json.Conf as M import View.Page (page) getIndex :: Conf -> ActionM () getIndex conf = html . page $ M.Conf { M.currency = currency conf } signOut :: ActionM () signOut = do LoginSession.delete status ok200