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

RESTful的配置不生效 #36

Open
moyee opened this issue Nov 9, 2017 · 1 comment
Open

RESTful的配置不生效 #36

moyee opened this issue Nov 9, 2017 · 1 comment

Comments

@moyee
Copy link

moyee commented Nov 9, 2017

按开发文档,可以进行路由映射配置,但不知道应该怎么样配置?

如下配置在config/params.php 或者 config/docker/params.php
直接访问/users/ask 依然回提示找不到方法

$config['rest']['route']['rules'] = [
'GET,POST /groups' => '/account/profile',
'GET /users/ask' => 'user/apply',
'GET /users' => 'user/index',
'GET /users/uid:\d+' => 'user/view',
'PUT /users/method:\w+' => 'user/',
'DELETE /users/uid:\d+' => 'user/delete',
]

@viaweb3
Copy link

viaweb3 commented Nov 13, 2017

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

2 participants