Skip to content

Commit

Permalink
feat(server): expose endpoint to query pipewire-pulse status
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Apr 12, 2024
1 parent 3e76e43 commit 705b602
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ int main(int argc, char **args)
response.status = 200;
});

server.Get("/has-pipewire-pulse",
[](const auto &, auto &response)
{
auto data = glz::write_json(patchbay::has_pipewire());

response.set_content(data, "application/json");
response.status = 200;
});

server.Get("/unlink",
[](const auto &, auto &response)
{
Expand Down

0 comments on commit 705b602

Please sign in to comment.