added optional web component UI control
This commit is contained in:
@@ -259,6 +259,18 @@ private:
|
||||
routeCallbacks.getNdiSourcesJson = [this]() {
|
||||
return BuildNdiSourcesJson();
|
||||
};
|
||||
routeCallbacks.resolveShaderAssetPath = [this](
|
||||
const std::string& shaderId,
|
||||
const std::string& assetPath,
|
||||
std::filesystem::path& resolvedPath,
|
||||
std::string& assetError) {
|
||||
if (!mRuntimeContent)
|
||||
{
|
||||
assetError = "No runtime content controller is active.";
|
||||
return false;
|
||||
}
|
||||
return mRuntimeContent->ResolveAssetPath(shaderId, assetPath, resolvedPath, assetError);
|
||||
};
|
||||
routeCallbacks.executePost = [this](const std::string& path, const std::string& body) {
|
||||
if (path == "/api/config/save")
|
||||
return HandleConfigSave(body);
|
||||
|
||||
Reference in New Issue
Block a user