Support /login

Support basic authentication.

Note the TODOs that this commit introduces to track some of the remaining work.
This commit is contained in:
William Carroll 2020-07-28 14:15:41 +01:00
parent b170be9375
commit b355664858
2 changed files with 30 additions and 3 deletions

View file

@ -37,3 +37,8 @@ type API =
-- trips: List
:<|> "trips"
:> Get '[JSON] [T.Trip]
-- Miscellaneous
:<|> "login"
:> ReqBody '[JSON] T.AccountCredentials
:> Post '[JSON] (Maybe T.Session)