aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Server.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/Server.elm')
-rw-r--r--src/client/elm/Server.elm10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client/elm/Server.elm b/src/client/elm/Server.elm
index ad6d212..be052bb 100644
--- a/src/client/elm/Server.elm
+++ b/src/client/elm/Server.elm
@@ -1,6 +1,5 @@
module Server
- ( init
- , signIn
+ ( signIn
, addPayment
, deletePayment
, setIncome
@@ -20,13 +19,6 @@ import Model.Income exposing (incomesDecoder, incomeIdDecoder, IncomeId)
import Model.User exposing (Users, usersDecoder, UserId, userIdDecoder)
import Model.Init exposing (Init)
-init : Task Http.Error Init
-init =
- Task.map Init (Http.get usersDecoder "/api/users")
- `Task.andMap` (Http.get ("id" := userIdDecoder) "/api/whoAmI")
- `Task.andMap` (Http.get paymentsDecoder "/api/payments")
- `Task.andMap` (Http.get incomesDecoder "/api/incomes")
-
signIn : String -> Task Http.Error ()
signIn email =
post ("/api/signIn?email=" ++ email)