gh-wh-handler/include/config/config-api.hpp

15 lines
348 B
C++
Raw Permalink Normal View History

#ifndef CONFIG_API_HPP
#define CONFIG_API_HPP
#include <nlohmann/json.hpp>
class ConfigApi {
public:
static bool set_port(nlohmann::json config, int port);
static bool add_token(nlohmann::json config, std::string repo, std::string token);
static bool remove_token(nlohmann::json config, std::string repo);
};
#endif