diff options
author | Joris | 2015-09-04 09:52:20 +0200 |
---|---|---|
committer | Joris | 2015-09-04 09:52:20 +0200 |
commit | c1f44a5890fbb26faf6f17c676662ea1bd495f2e (patch) | |
tree | f158bdef5bd985a9b11d46d12878d566268cf6cc /src/server/Main.hs | |
parent | 889df8caf04de5f10a9e623bab3e502e9573159d (diff) |
Adding paging (need some fixes)
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 |