-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
resources 路由进不去update方法 #3360
Comments
Hello @callmesoul. Please provide a reproducible example following the instruction. Issues labeled by @callmesoul,请根据这个说明提供最小可复现代码。 如果在 7 天内没有进展会被自动关闭。 |
@egg-bot
config.default.js 关闭csrf:
再使用postman
|
|
https://github.com/eggjs/egg-core/blob/master/lib/utils/router.js#L123 post 对应的是 create 方法 |
看错了不好意思, |
这个一直没改过。 |
好吧... |
目前也碰到进不了update方法的问题。使用Form表单更新数据的时候,设置method="PATCH",但直接跳转到show方法了。 |
经过查看Rails的form_for文档,发现需要在form表单里,添加
原method还是直接按照method="post"设置 |
路由注册:
router.resources('express', '/api/express', controller.express);
controller->express
:其他方法都可以,就update 404,也打印不了
其他resources试了也是一样,都行就update 404 进不去
The text was updated successfully, but these errors were encountered: