mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-01 01:40:21 +05:30
satisfy StyleCI
This commit is contained in:
parent
9c66688d19
commit
5760450854
@ -69,7 +69,7 @@ $app->post('/access_token', function () {
|
|||||||
})->add(new AuthenticationServerMiddleware($app->getContainer()->get(Server::class)));
|
})->add(new AuthenticationServerMiddleware($app->getContainer()->get(Server::class)));
|
||||||
|
|
||||||
// Secured API
|
// Secured API
|
||||||
$app->group('/api', function() {
|
$app->group('/api', function () {
|
||||||
$this->get('/user', function (ServerRequestInterface $request, ResponseInterface $response) {
|
$this->get('/user', function (ServerRequestInterface $request, ResponseInterface $response) {
|
||||||
$params = [];
|
$params = [];
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ $app->group('/api', function() {
|
|||||||
$params = [
|
$params = [
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'name' => 'Alex',
|
'name' => 'Alex',
|
||||||
'city' => 'London'
|
'city' => 'London',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ $app = new App([
|
|||||||
);
|
);
|
||||||
|
|
||||||
return $server;
|
return $server;
|
||||||
}
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$app->post('/access_token', function (ServerRequestInterface $request, ResponseInterface $response) use ($app) {
|
$app->post('/access_token', function (ServerRequestInterface $request, ResponseInterface $response) use ($app) {
|
||||||
|
Loading…
Reference in New Issue
Block a user