NDI discovery
This commit is contained in:
@@ -36,6 +36,12 @@ HttpControlServer::HttpResponse HttpControlServer::ServeGet(const HttpRequest& r
|
||||
return JsonResponse("200 OK", mCallbacks.getStateJson ? mCallbacks.getStateJson() : "{}");
|
||||
if (request.path == "/api/config")
|
||||
return JsonResponse("200 OK", mCallbacks.getConfigJson ? mCallbacks.getConfigJson() : "{}");
|
||||
if (request.path == "/api/ndi/sources")
|
||||
return JsonResponse(
|
||||
"200 OK",
|
||||
mCallbacks.getNdiSourcesJson
|
||||
? mCallbacks.getNdiSourcesJson()
|
||||
: "{\"ok\":false,\"sources\":[],\"error\":\"NDI source discovery is not available.\"}");
|
||||
if (request.path == "/openapi.yaml" || request.path == "/docs/openapi.yaml")
|
||||
return ServeOpenApiSpec();
|
||||
if (request.path == "/docs" || request.path == "/docs/")
|
||||
|
||||
Reference in New Issue
Block a user