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
按开发文档,可以进行路由映射配置,但不知道应该怎么样配置?
如下配置在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', ]
The text was updated successfully, but these errors were encountered:
需要配置路由为 rest 路由。https://github.com/pinguo/php-msf-docs/blob/master/chapter-5/5.9-RESTful.md#使用方式
Sorry, something went wrong.
No branches or pull requests
按开发文档,可以进行路由映射配置,但不知道应该怎么样配置?
如下配置在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',
]
The text was updated successfully, but these errors were encountered: