mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +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}
|
// 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']);
|
$result = (new Model\Users())->get($args['username']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user