#pragma once #include #include #include namespace svapi { struct Config { std::string logLevel = "info"; std::string httpBind = "0.0.0.0"; uint16_t httpPort = 8080; std::string dbAddress = "localhost:9004"; std::string webuiDir = "/usr/share/smartbotic-vectorapi/webui"; static Config fromJson(const nlohmann::json& j); static Config load(const std::string& path); // reads file then fromJson }; } // namespace svapi