diff options
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index ce652d0..8a77598 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -42,8 +42,10 @@ main = do get "/userName" $ getUserName - get "/payments" $ - getPaymentsAction + get "/payments" $ do + page <- param "page" :: ActionM Int + perPage <- param "perPage" :: ActionM Int + getPaymentsAction page perPage post "/payment/add" $ do name <- param "name" :: ActionM Text |