Skip to content

Commit c383b7d

Browse files
committed
Clear signal chain via HTTPServer
1 parent 7810359 commit c383b7d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Source/Utils/OpenEphysHttpServer.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,13 @@ class OpenEphysHttpServer : juce::Thread {
515515
res.set_content(ret.dump(), "application/json");
516516
});
517517

518+
svr_->Get("/api/processors/clear", [this](const httplib::Request&, httplib::Response& res) {
519+
graph_->clearSignalChain();
520+
json ret;
521+
status_to_json(graph_, &ret);
522+
res.set_content(ret.dump(), "application/json");
523+
});
524+
518525
svr_->Put("/api/processors/delete", [this](const httplib::Request& req, httplib::Response& res) {
519526

520527
LOGD( "Received PUT request" );

0 commit comments

Comments
 (0)