Allow API users to create Trip entries

Next up:
- list trips
- update existing trip entries
- delete existing trip entries
This commit is contained in:
William Carroll 2020-07-28 09:10:54 +01:00
parent 475f62fb16
commit 52ac4d79bd
3 changed files with 79 additions and 3 deletions

View file

@ -15,3 +15,6 @@ type API = "user"
:<|> "user"
:> Capture "name" Text
:> Get '[JSON] (Maybe T.Account)
:<|> "trip"
:> ReqBody '[JSON] T.Trip
:> Post '[JSON] Bool