From 1d7c77f51d287c9d636630142791952890d17622 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 31 Jul 2020 11:37:45 +0100 Subject: Support POST /unfreeze Allow admins and managers to unfreeze accounts that we froze for security reasons. --- src/API.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/API.hs') diff --git a/src/API.hs b/src/API.hs index cc737c16bd72..8bdb6bdfbb73 100644 --- a/src/API.hs +++ b/src/API.hs @@ -62,3 +62,7 @@ type API = :<|> "logout" :> SessionCookie :> Get '[JSON] (Headers '[Header "Set-Cookie" SetCookie] NoContent) + :<|> "unfreeze" + :> SessionCookie + :> ReqBody '[JSON] T.UnfreezeAccountRequest + :> Post '[JSON] NoContent -- cgit 1.4.1