Support /login
Support basic authentication. Note the TODOs that this commit introduces to track some of the remaining work.
This commit is contained in:
parent
b170be9375
commit
b355664858
2 changed files with 30 additions and 3 deletions
|
|
@ -37,3 +37,8 @@ type API =
|
|||
-- trips: List
|
||||
:<|> "trips"
|
||||
:> Get '[JSON] [T.Trip]
|
||||
|
||||
-- Miscellaneous
|
||||
:<|> "login"
|
||||
:> ReqBody '[JSON] T.AccountCredentials
|
||||
:> Post '[JSON] (Maybe T.Session)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue