-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
服务端接口都是同一个路径,后端做了路由,希望不同的url可以返回不同的数据,即使路径相同。
比如,后端接口都是通过
/index?control=user&action=
,/index?control=order&action=
,/index?control=product&action=
用rap2的话,这些相同的路径都会返回最后一个接口。
如果这些相同的路径
/index
可以返回不同的接口数据的话,就可以和后端接口统一了,直接做一个代理就可以了。不需要定义和后端不同的接口,然后再拦截转发请问是否可以这样实现?还是必须要做拦截转发
The text was updated successfully, but these errors were encountered: