about summary refs log tree commit diff
path: root/src/API.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-28T08·10+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-28T08·12+0100
commit52ac4d79bda2c5f5cc2ff636e79b4bf3b5979868 (patch)
tree79d32e30c2e0c0227d30e542878fa3a816ee81d7 /src/API.hs
parent475f62fb16fb29e55548cc8b238caea8bf60bd8f (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.hs3
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