File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,6 +337,21 @@ class OpenEphysHttpServer : juce::Thread {
337337 status_to_json (graph_, &ret);
338338 res.set_content (ret.dump (), " application/json" );
339339 });
340+
341+ svr_->Get (" /api/processors/list" , [this ](const httplib::Request&, httplib::Response& res) {
342+ auto listOfProc = AccessClass::getProcessorList ()->getItemList ();
343+
344+ std::vector<json> processors_json;
345+ for (const auto & p : listOfProc) {
346+ json processor_json;
347+ processor_json[" name" ] = p.toStdString ();
348+ processors_json.push_back (processor_json);
349+ }
350+ json ret;
351+ ret[" processors" ] = processors_json;
352+
353+ res.set_content (ret.dump (), " application/json" );
354+ });
340355
341356 svr_->Get (" /api/processors" , [this ](const httplib::Request&, httplib::Response& res) {
342357 Array<GenericProcessor*> processors = graph_->getListOfProcessors ();
You can’t perform that action at this time.
0 commit comments