From b3556648582c02fb5a9a10a6a4525e212397f945 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 28 Jul 2020 14:15:41 +0100 Subject: Support /login Support basic authentication. Note the TODOs that this commit introduces to track some of the remaining work. --- src/API.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/API.hs') diff --git a/src/API.hs b/src/API.hs index 134d278426d6..9ae618cd3029 100644 --- a/src/API.hs +++ b/src/API.hs @@ -37,3 +37,8 @@ type API = -- trips: List :<|> "trips" :> Get '[JSON] [T.Trip] + + -- Miscellaneous + :<|> "login" + :> ReqBody '[JSON] T.AccountCredentials + :> Post '[JSON] (Maybe T.Session) -- cgit 1.4.1