about summary refs log tree commit diff
path: root/src/API.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-25T17·18+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-25T17·18+0100
commitd01161656419370032f19fd659e30c349cac93cb (patch)
tree5aa1c807278531cc143ee335eb39829fbefc39d3 /src/API.hs
parent718152ec14242a83fa63c5272c7527dbbd928ee2 (diff)
Change the name User to Account
Next I'll need to add / remove fields from the Account type.
Diffstat (limited to 'src/API.hs')
-rw-r--r--src/API.hs4
1 files changed, 2 insertions, 2 deletions
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)