diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-25T17·18+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-25T17·18+0100 |
commit | d01161656419370032f19fd659e30c349cac93cb (patch) | |
tree | 5aa1c807278531cc143ee335eb39829fbefc39d3 /src/API.hs | |
parent | 718152ec14242a83fa63c5272c7527dbbd928ee2 (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.hs | 4 |
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) |