* Copyright (c), Huawei Technologies Co., Ltd. 2025-2025.All rights reserved.
*/
#include "HttpExamplePlugin.h"
#include "ExampleHandler.h"
using namespace Insight::Example;
HttpExamplePlugin::HttpExamplePlugin(): BasePlugin("HttpExamplePlugin")
{
handlers_.emplace("Test", std::make_shared<ExampleHandler>());
}
std::map<std::string, std::shared_ptr<ApiHandler>> HttpExamplePlugin::GetAllHandlers()
{
return handlers_;
}
std::vector<std::string> HttpExamplePlugin::GetModuleConfig()
{
return {
R"(
{
"name":"HttpExamplePlugin",
"requestName":"HttpExample",
"attributes":{
"src":"./plugin/HttpExample/index.html",
"isDefault":true
}
}
)"
};
}
PluginRegister pluginRegister(std::move(std::make_unique<HttpExamplePlugin>()));