diff options
author | Joris Guyonvarch | 2015-07-19 16:07:15 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-19 16:07:15 +0200 |
commit | 0d589e12a0c32936303de46b1e462dd19648170d (patch) | |
tree | 95527317fae74ed620ad1b118abbbe2ccf616d19 /src/server/Main.hs | |
parent | e4eefaa5b418780e6fb63e929f826b927bbeac68 (diff) |
Login with a token validation
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index 4461945..7fd42a7 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -23,10 +23,14 @@ main = do post "/signIn" $ do login <- param "login" :: ActionM Text - signIn login + signInAction login + + get "/validateSignIn" $ do + token <- param "token" :: ActionM Text + validateSignInAction token post "/signOut" $ - signOut + signOutAction get "/payments" $ getPaymentsAction @@ -43,4 +47,4 @@ main = do email <- param "email" :: ActionM Text name <- param "name" :: ActionM Text cost <- param "cost" :: ActionM Int - insertPaymentAction email name cost + createPaymentAction email name cost |