diff options
author | Joris | 2015-12-31 19:34:29 +0100 |
---|---|---|
committer | Joris | 2015-12-31 19:34:29 +0100 |
commit | b73ba24f3440b81698c9d5c370739d03f958f059 (patch) | |
tree | 72caa19d605d9e9af2d43a6f62c177ddb3d0f3b3 /src/server/Main.hs | |
parent | 5bfd349bedb9c395cbeb38bb888e379ba36d5d35 (diff) |
Fetch all the payments, do the paging only in the UI
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index 3539120..3ac489e 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -54,10 +54,7 @@ main = do -- Payments - get "/payments" $ do - page <- param "page" :: ActionM Int - perPage <- param "perPage" :: ActionM Int - getPayments page perPage + get "/payments" getPayments get "/monthlyPayments" getMonthlyPayments |