Implement get config command and api endpoint for testing purposes

This commit is contained in:
Lorow
2024-12-05 00:40:06 +01:00
parent e033f663ff
commit 44179cee65
8 changed files with 48 additions and 2 deletions

View File

@@ -4,4 +4,10 @@ CommandResult saveConfigCommand::execute(std::string_view jsonPayload)
{
projectConfig->save();
return CommandResult::getSuccessResult("Config saved");
}
CommandResult getConfigCommand::execute(std::string_view jsonPayload)
{
auto configRepresentation = projectConfig->getTrackerConfig().toRepresentation();
return CommandResult::getSuccessResult(configRepresentation);
}