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
mock-server 获取restful风格路径参数 #3396
Comments
这样可以拿到
你的写法没用过, 是不是应该?
|
我的写法是 express 中restful 路径参数的标准写法。可能 mock.js 不支持这种写法。 除了正则表达式的写法外, |
mock-server.js我想使用这样的
我改成这样是可以的
结果显而易见 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我有一条这样的 api
对应的 mock 是
我想知道在mockserver中,用什么样的方法可以拿到restful风格的url中的参数,试过 config.params ,是一个空对象。
The text was updated successfully, but these errors were encountered: