aboutsummaryrefslogtreecommitdiff
path: root/src/server/Main.hs
diff options
context:
space:
mode:
authorJoris2015-11-01 11:58:42 +0100
committerJoris2015-11-01 11:58:42 +0100
commitc015db01e2acee9d1fc83cd6a762d0a3e629b353 (patch)
tree9e6b8f5fa04a3ce6cca51f5cae4cc8fbf6a0f5ed /src/server/Main.hs
parentd3e045e8034c5473964c0529ffc1e181311842c2 (diff)
downloadbudget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.tar.gz
budget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.tar.bz2
budget-c015db01e2acee9d1fc83cd6a762d0a3e629b353.zip
Use in client the real currency set in config.txt
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r--src/server/Main.hs10
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