We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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可以返回不同的数据,即使路径相同。 比如,后端接口都是通过/index?control=user&action=,/index?control=order&action=,/index?control=product&action= 用rap2的话,这些相同的路径都会返回最后一个接口。 如果这些相同的路径/index可以返回不同的接口数据的话,就可以和后端接口统一了,直接做一个代理就可以了。不需要定义和后端不同的接口,然后再拦截转发
/index?control=user&action=
/index?control=order&action=
/index?control=product&action=
/index
请问是否可以这样实现?还是必须要做拦截转发
The text was updated successfully, but these errors were encountered:
No branches or pull requests
服务端接口都是同一个路径,后端做了路由,希望不同的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: