Skip to content

Commit 26a3f0c

Browse files
fix: API base URL drops /api prefix
Open API endpoints carry /open-api/* path; base URL stays at root host.
1 parent 2449b42 commit 26a3f0c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
## API 地址
3535

3636
```
37-
https://mp2rss.bugcode.dev/api
37+
https://mp2rss.bugcode.dev
3838
```
3939

4040
完整地址示例:
4141
```
42-
https://mp2rss.bugcode.dev/api/open-api/subscriptions
42+
https://mp2rss.bugcode.dev/open-api/subscriptions
4343
```
4444

4545
## API 鉴权

docs/cli/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| ---- | ---- | ------ |
99
| `-o, --output {json\|table}` | 输出格式 | `table` |
1010
| `--api-key <key>` | 单次覆盖 Feed 密钥(优先级:环境变量 `MP2RSS_FEED_KEY` > 配置文件) ||
11-
| `--api-url <url>` | 单次覆盖 API 地址(优先级:`--api-url` > `MP2RSS_API_URL` > 配置 > 默认值) | `https://mp2rss.bugcode.dev/api` |
11+
| `--api-url <url>` | 单次覆盖 API 地址(优先级:`--api-url` > `MP2RSS_API_URL` > 配置 > 默认值) | `https://mp2rss.bugcode.dev` |
1212
| `-h, --help` | 查看帮助 ||
1313
| `--version` | 查看版本 ||
1414

@@ -262,7 +262,7 @@ mp2rss update --force # 即使版本相同也强制重装
262262
```json
263263
{
264264
"feed_key": "9f3a2c...(64 位 hex)",
265-
"api_url": "https://mp2rss.bugcode.dev/api",
265+
"api_url": "https://mp2rss.bugcode.dev",
266266
"last_login_at": 1747194198,
267267
"last_verify_at": 1747194198
268268
}

docs/cli/login.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mp2rss auth status
9898

9999
```
100100
状态:已登录(来源:env)
101-
API:https://mp2rss.bugcode.dev/api
101+
API:https://mp2rss.bugcode.dev
102102
Feed Key:9f3a2c***
103103
上次校验:2026-05-14 11:23
104104
```
@@ -113,7 +113,7 @@ Feed Key:9f3a2c***
113113

114114
```
115115
状态:未登录
116-
API:https://mp2rss.bugcode.dev/api
116+
API:https://mp2rss.bugcode.dev
117117
登录:mp2rss auth login
118118
```
119119

@@ -129,7 +129,7 @@ JSON 示例(字段命名与具体格式以代码实际输出为准):
129129
{
130130
"loggedIn": true,
131131
"source": "env",
132-
"apiUrl": "https://mp2rss.bugcode.dev/api",
132+
"apiUrl": "https://mp2rss.bugcode.dev",
133133
"feedKeyMasked": "9f3a2c***",
134134
"lastLoginAt": 1747194198000,
135135
"lastVerifyAt": 1747194198000

0 commit comments

Comments
 (0)