Change the name User to Account

Next I'll need to add / remove fields from the Account type.
This commit is contained in:
William Carroll 2020-07-25 18:18:59 +01:00
parent 718152ec14
commit d011616564
3 changed files with 12 additions and 12 deletions

View file

@ -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)