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/Main.hs | |
parent | d3e045e8034c5473964c0529ffc1e181311842c2 (diff) |
Use in client the real currency set in config.txt
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index 6a120d6..3d61481 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -19,23 +19,23 @@ import Controller.Payer import Model.Database (runMigrations) import Model.Frequency -import Config +import qualified Config main :: IO () main = do runMigrations _ <- forkIO monthlyPaymentJobListener - eitherConfig <- getConfig "config.txt" + eitherConfig <- Config.getConfig "config.txt" case eitherConfig of Left errorMessage -> TIO.putStrLn errorMessage Right config -> do - scotty (port config) $ do + scotty (Config.port config) $ do middleware $ staticPolicy (noDots >-> addBase "public") - get "/" getIndex - post "/signOut" signOut + get "/" (getIndex config) + post "/signOut" signOut -- SignIn |