Change the name User to Account
Next I'll need to add / remove fields from the Account type.
This commit is contained in:
parent
718152ec14
commit
d011616564
3 changed files with 12 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue