diff options
author | Joris | 2015-11-01 11:58:42 +0100 |
---|---|---|
committer | Joris | 2015-11-01 11:58:42 +0100 |
commit | c015db01e2acee9d1fc83cd6a762d0a3e629b353 (patch) | |
tree | 9e6b8f5fa04a3ce6cca51f5cae4cc8fbf6a0f5ed /src/server/Controller | |
parent | d3e045e8034c5473964c0529ffc1e181311842c2 (diff) |
Use in client the real currency set in config.txt
Diffstat (limited to 'src/server/Controller')
-rw-r--r-- | src/server/Controller/Index.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/Controller/Index.hs b/src/server/Controller/Index.hs index da67051..e4ec729 100644 --- a/src/server/Controller/Index.hs +++ b/src/server/Controller/Index.hs @@ -7,12 +7,15 @@ import Web.Scotty import Network.HTTP.Types.Status (ok200) +import Config (Config(..)) import qualified LoginSession +import qualified Model.Json.Config as M + import View.Page (page) -getIndex :: ActionM () -getIndex = html page +getIndex :: Config -> ActionM () +getIndex config = html . page $ M.Config { M.currency = currency config } signOut :: ActionM () signOut = do |