16 lines
489 B
PHP
16 lines
489 B
PHP
|
<?php
|
||
|
use Psr\Container\ContainerInterface as Container;
|
||
|
|
||
|
return [
|
||
|
Incoviba\API\Common\Service\Auth::class => function(Container $c) {
|
||
|
return new Incoviba\API\Common\Service\Auth($c->get('AUTH_KEY'));
|
||
|
},
|
||
|
Incoviba\API\Common\Middleware\Auth::class => function(Container $c) {
|
||
|
return new Incoviba\API\Common\Middleware\Auth(
|
||
|
$c->get(Incoviba\API\Common\Service\Auth::class),
|
||
|
$c->get(Slim\Psr7\Factory\ResponseFactory::class),
|
||
|
['/auth/generate']
|
||
|
);
|
||
|
}
|
||
|
];
|