Skip to content

[Feature Request] 增加本地刷新 Host 的 HTTP API #1018

Description

@tofrankie

背景

现在我使用 Raycast Extension 来控制 SwitchHosts,它使用的是 SwitchHosts 提供的本地 HTTP API。

但目前仅提供了:

  • /api/list 获取 host 列表
  • /api/toggle?id=<id> 开启/关闭某个 host

http_api.rs#L1~L11

预期

我希望内部可以提供一个刷新某个 Host 的 API,方便使用 Raycast / Alfred 等外部程序快速刷新 Host。

  • /api/refresh?id=<id>

谢谢~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions