mrh 3c771eb231 新增默认启动各个供应商 hace 10 meses
..
mihomo.py 3c771eb231 新增默认启动各个供应商 hace 10 meses
readme.md b061a92664 添加 mihomo get proxy 路由 hace 10 meses
subscriptions.py bea308e1a8 完成单个 mihomo 启停和数据库更新 hace 10 meses

readme.md

POST /subscriptions
{
  "urls": [
    "http://sub.sub.sub.subsub123456789.com/answer/land?token=a7cbdde987a58068b82e52d57ee5eecd",
    "https://www.yfjc.xyz/api/v1/client/subscribe?token=b74f2207492053926f7511a8e474048f",
    "http://subscr.xpoti.com/v3/subscr?id=90bd6ff1da374a89b4ba763f354f20bf"
  ],
  "overwrite": true,
}

Response:

GET /mihomo

{
  "FSCloud": [
    {
      "proxy_name": "美国003 - hysteria2",
      "external_controller": null,
      "pid": null,
      "updated_at": "2025-01-30T10:04:02.399640",
      "subscript_file_id": 10,
      "provider_name": "FSCloud",
      "mixed_port": null,
      "id": 30,
      "temp_file_path": null,
      "running": false
    }
  ],
  "一分机场": [
    {
      "proxy_name": "自动选择",
      "external_controller": null,
      "pid": null,
      "updated_at": "2025-01-30T09:28:33.180280",
      "subscript_file_id": null,
      "provider_name": "一分机场",
      "mixed_port": null,
      "id": 5,
      "temp_file_path": null,
      "running": false
    },
    ...
  ],
}

/POST /mihomo/start

{
  "provider_name": "FSCloud",
  "proxy_name": "美国003 - hysteria2",
}