diff options
author | Joris | 2020-01-27 22:07:18 +0100 |
---|---|---|
committer | Joris | 2020-01-27 22:07:18 +0100 |
commit | 79e1d8b0099d61b580a499311f1714b1b7eb07b5 (patch) | |
tree | a4c35442914b3a59119ddfc1e6c2ce358ecd4758 /server/src/Main.hs | |
parent | 47c2a4d6b68c54eed5f7b45671b1ccaf8c0db200 (diff) |
Show total incom by month in statistics
Diffstat (limited to 'server/src/Main.hs')
-rw-r--r-- | server/src/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/Main.hs b/server/src/Main.hs index 64de511..659a0fa 100644 --- a/server/src/Main.hs +++ b/server/src/Main.hs @@ -13,6 +13,7 @@ import qualified Controller.Category as Category import qualified Controller.Income as Income import qualified Controller.Index as Index import qualified Controller.Payment as Payment +import qualified Controller.Statistics as Statistics import qualified Controller.User as User import qualified Design.Global as Design import Job.Daemon (runDaemons) @@ -98,7 +99,7 @@ main = do Category.delete categoryId S.get "/api/statistics" $ do - Payment.statistics + Statistics.paymentsAndIncomes S.notFound $ do S.status Status.ok200 |