Prefer NoContent response to Bool

When I first wrote this handler I wasn't aware of the NoContent response
option.
This commit is contained in:
William Carroll 2020-07-28 10:12:25 +01:00
parent 52ac4d79bd
commit 2f73d1db6c
2 changed files with 3 additions and 3 deletions

View file

@ -17,4 +17,4 @@ type API = "user"
:> Get '[JSON] (Maybe T.Account)
:<|> "trip"
:> ReqBody '[JSON] T.Trip
:> Post '[JSON] Bool
:> Post '[JSON] NoContent