diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-28T08·10+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-28T08·12+0100 |
commit | 52ac4d79bda2c5f5cc2ff636e79b4bf3b5979868 (patch) | |
tree | 79d32e30c2e0c0227d30e542878fa3a816ee81d7 /src/API.hs | |
parent | 475f62fb16fb29e55548cc8b238caea8bf60bd8f (diff) |
Allow API users to create Trip entries
Next up: - list trips - update existing trip entries - delete existing trip entries
Diffstat (limited to 'src/API.hs')
-rw-r--r-- | src/API.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/API.hs b/src/API.hs index 70da1921d251..f858e6d7ab53 100644 --- a/src/API.hs +++ b/src/API.hs @@ -15,3 +15,6 @@ type API = "user" :<|> "user" :> Capture "name" Text :> Get '[JSON] (Maybe T.Account) + :<|> "trip" + :> ReqBody '[JSON] T.Trip + :> Post '[JSON] Bool |