diff options
author | William Carroll <wpcarro@gmail.com> | 2020-07-31T10·37+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-07-31T10·37+0100 |
commit | 1d7c77f51d287c9d636630142791952890d17622 (patch) | |
tree | 596edb7d9b6e76ae86058896ad47749186ddf18c /src/API.hs | |
parent | 43eff5f1d037b3e45a3b7a274048527e2a95103d (diff) |
Support POST /unfreeze
Allow admins and managers to unfreeze accounts that we froze for security reasons.
Diffstat (limited to 'src/API.hs')
-rw-r--r-- | src/API.hs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |