Allow API users to create Trip entries
Next up: - list trips - update existing trip entries - delete existing trip entries
This commit is contained in:
parent
475f62fb16
commit
52ac4d79bd
3 changed files with 79 additions and 3 deletions
|
|
@ -15,3 +15,6 @@ type API = "user"
|
|||
:<|> "user"
|
||||
:> Capture "name" Text
|
||||
:> Get '[JSON] (Maybe T.Account)
|
||||
:<|> "trip"
|
||||
:> ReqBody '[JSON] T.Trip
|
||||
:> Post '[JSON] Bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue