2021-11-30 18:04:41 -03:00
|
|
|
<?php
|
|
|
|
use Psr\Container\ContainerInterface as Container;
|
|
|
|
|
|
|
|
return [
|
|
|
|
Incoviba\API\Common\Service\Auth::class => function(Container $c) {
|
2021-12-25 23:17:15 -03:00
|
|
|
return new Incoviba\API\Common\Service\Auth($c->get('API_KEY'));
|
2021-11-30 18:04:41 -03:00
|
|
|
},
|
|
|
|
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']
|
|
|
|
);
|
|
|
|
}
|
|
|
|
];
|