From ceba9d63df4ed5f66b4978a95bffcc90c55fc62c Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Sun, 1 Jun 2025 19:22:00 -0400 Subject: fig-web: Make the thing actually build --- fig-web/src/Fig/Web/Module/Exchange.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fig-web/src/Fig/Web/Module/Exchange.hs') diff --git a/fig-web/src/Fig/Web/Module/Exchange.hs b/fig-web/src/Fig/Web/Module/Exchange.hs index 3672265..941687e 100644 --- a/fig-web/src/Fig/Web/Module/Exchange.hs +++ b/fig-web/src/Fig/Web/Module/Exchange.hs @@ -18,6 +18,7 @@ import qualified Data.UUID.V4 as UUID import Fig.Web.Utils import Fig.Web.Types +import Fig.Web.Auth public :: PublicModule public a = do @@ -27,7 +28,7 @@ public a = do secure :: SecureModule secure a = do - onPost "/api/exchange" $ authed \creds -> do + onPost "/api/exchange" $ authed a \creds -> do haveCur <- formParam "haveCur" haveAmount <- formParam "haveAmount" wantCur <- formParam "wantCur" @@ -40,10 +41,10 @@ secure a = do , wantAmount = wantAmount } respondText $ decodeUtf8 key - onPost "/api/exchange/:key" $ authed \creds -> do + onPost "/api/exchange/:key" $ authed a \creds -> do key <- pathParam "key" satisfyOrder a.db.conn key creds.email - onDelete "/api/exchange/:key" $ authed \_creds -> do + onDelete "/api/exchange/:key" $ authed a \_creds -> do key <- pathParam "key" cancelOrder a.db.conn key -- cgit v1.2.3