diff options
author | Joris | 2015-09-13 12:04:52 +0200 |
---|---|---|
committer | Joris | 2015-09-13 12:04:52 +0200 |
commit | 5babf01323bcb62a9880593165af70732f22751b (patch) | |
tree | 716373ce6f3ebeaa0bb532b30d2a3b65d894d128 /src/server/Main.hs | |
parent | a94813019b146d75f7556d10e8d0dfd50586f54d (diff) |
Adding income database table with a getter and a setter
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index 8956fa4..71c4674 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -48,9 +48,12 @@ main = do -- Users - get "/users" getUsers - get "/whoAmI" whoAmI - get "/income" getIncome + get "/users" getUsers + get "/whoAmI" whoAmI + get "/income" getIncome + post "/income" $ do + amount <- param "amount" :: ActionM Int + setIncome amount -- Payments |