Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不同url可以返回不同的接口数据 #1304

Open
Yalhu opened this issue May 2, 2019 · 0 comments
Open

不同url可以返回不同的接口数据 #1304

Yalhu opened this issue May 2, 2019 · 0 comments

Comments

@Yalhu
Copy link

Yalhu commented May 2, 2019

服务端接口都是同一个路径,后端做了路由,希望不同的url可以返回不同的数据,即使路径相同。
比如,后端接口都是通过/index?control=user&action=,/index?control=order&action=,/index?control=product&action=
用rap2的话,这些相同的路径都会返回最后一个接口。
如果这些相同的路径/index可以返回不同的接口数据的话,就可以和后端接口统一了,直接做一个代理就可以了。不需要定义和后端不同的接口,然后再拦截转发

请问是否可以这样实现?还是必须要做拦截转发

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant