Skip to content

feat(router): third-party#8297

Closed
linbuxiao wants to merge 1 commit intoDIYgod:masterfrom
linbuxiao:third-party
Closed

feat(router): third-party#8297
linbuxiao wants to merge 1 commit intoDIYgod:masterfrom
linbuxiao:third-party

Conversation

@linbuxiao
Copy link
Copy Markdown
Contributor

@linbuxiao linbuxiao commented Sep 29, 2021

#8236

path: /third-party
method: POST
content-type: application/json
dep: koa-bodyparser 解析post请求体

目前想法是第三方路由的支持并不包含解析部分。只暴露一个接口,将抛来的对象转化为xml返回。

优点在于:

  1. 与目前的路由不冲突,作为功能性路由与其他路由同级存在。
  2. 分离parse步骤。页面格式复杂,使用get url ---> return xml的形式建立内容不太现实?
  3. 可使用云函数,git action等方式定时post解析后的对象给该接口,接收返回的xml

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 29, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub/BSuuE9efHXUnDdZF8FeGhhBUGRrE
✅ Preview: https://rsshub-git-fork-linbuxiao-third-party-diy.vercel.app

@github-actions github-actions bot added the auto: route no found Automated test failed due to route can not be found in PR description body label Sep 29, 2021
@github-actions
Copy link
Copy Markdown
Contributor

自动检测失败, 请确认PR正文部分符合格式规范并重新开启, 详情请检查日志
Auto Route test failed, please check your PR body format and reopen pull request. Check logs for more details

@github-actions github-actions bot closed this Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto: route no found Automated test failed due to route can not be found in PR description body

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant