fix(koplugin): add expected 301 status code (#1791)

This commit is contained in:
Huang Xin
2025-08-13 03:33:51 +08:00
committed by GitHub
parent 8e53e625a4
commit ce345ad67f
+3 -3
View File
@@ -1,19 +1,19 @@
{
"base_url": "http://web.readest.com/api",
"base_url": "https://web.readest.com/api",
"name": "readest-sync-api",
"methods": {
"pullChanges": {
"path": "/sync",
"method": "GET",
"required_params": ["since", "type", "book"],
"expected_status": [200, 400, 401, 403]
"expected_status": [200, 400, 301, 401, 403]
},
"pushChanges": {
"path": "/sync",
"method": "POST",
"required_params": ["books", "notes", "configs"],
"payload": ["books", "notes", "configs"],
"expected_status": [200, 201, 400, 401, 403]
"expected_status": [200, 201, 301, 400, 401, 403]
}
}
}