mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-27 01:02:12 +05:30
Merge pull request #269 from Hywan/fix_example_api
Fix bad accesses and bad arguments
This commit is contained in:
commit
164cc6ddb9
@ -76,7 +76,7 @@ $router->get('/users', function (Request $request) use ($server) {
|
||||
});
|
||||
|
||||
// GET /users/{username}
|
||||
$router->get('/users/{username}', function (Request $request, $args) use ($server) {
|
||||
$router->get('/users/{username}', function (Request $request, Response $response, array $args) use ($server) {
|
||||
|
||||
$result = (new Model\Users())->get($args['username']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user