about summary refs log tree commit diff
path: root/src/API.hs
diff options
context:
space:
mode:
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