diff options
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index 5688324..4f74f8e 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -15,7 +15,7 @@ import Controller.Index import Controller.SignIn import Controller.Payment import Controller.User -import Controller.Payer +import Controller.Income import Model.Database (runMigrations) import Model.Frequency @@ -58,7 +58,7 @@ main = do get "/users" getUsers get "/whoAmI" whoAmI - get "/income" getIncome + get "/incomes" getIncomes post "/income" $ do amount <- param "amount" :: ActionM Int setIncome amount @@ -80,7 +80,3 @@ main = do deletePayment paymentId get "/payments/count" getPaymentsCount - - -- Payers - - get "/payers" getPayers |