From d01161656419370032f19fd659e30c349cac93cb Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 25 Jul 2020 18:18:59 +0100 Subject: Change the name User to Account Next I'll need to add / remove fields from the Account type. --- src/API.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/API.hs') diff --git a/src/API.hs b/src/API.hs index 98ffd6094631..ae85c8f93b26 100644 --- a/src/API.hs +++ b/src/API.hs @@ -15,8 +15,8 @@ import qualified Types as T -------------------------------------------------------------------------------- type API = "user" - :> ReqBody '[JSON] T.User + :> ReqBody '[JSON] T.Account :> Post '[JSON] (Maybe T.Session) :<|> "user" :> Capture "name" Text - :> Get '[JSON] (Maybe T.User) + :> Get '[JSON] (Maybe T.Account) -- cgit 1.4.1