Added new API endpoints to get all user and config settings (closes #718)

This commit is contained in:
Bernd Bestel
2020-04-13 10:35:20 +02:00
parent b971375881
commit 42e6a8ef94
6 changed files with 127 additions and 7 deletions

View File

@@ -69,6 +69,18 @@ class UsersApiController extends BaseApiController
}
}
public function GetUserSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
{
try
{
return $this->ApiResponse($response, $this->getUsersService()->GetUserSettings(GROCY_USER_ID));
}
catch (\Exception $ex)
{
return $this->GenericErrorResponse($response, $ex->getMessage());
}
}
public function GetUserSetting(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
{
try