From 8d47a990e798cfc926b1b5b41cb061c2659157e9 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 24 Jul 2022 22:53:29 +0200 Subject: [PATCH] add API endpoints --- src/API.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/API.hs b/src/API.hs index 6998769..8dd7482 100644 --- a/src/API.hs +++ b/src/API.hs @@ -89,6 +89,12 @@ type MateAPI = "v1" :> ( :> ReqBody '[JSON] RoleAssociation :> Delete '[JSON] NoContent + :<|> "settings" :> AuthProtect "header-auth" + :> Get '[JSON] Settings + :<|> "settings" :> AuthProtect "header-auth" + :> ReqBody '[JSON] Settings + :> Post '[JSON] NoContent + :<|> "meta" :> Get '[JSON] MetaInformation )