mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-14 23:22:21 +03:00
29 lines
702 B
PHP
29 lines
702 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
|
|
return [
|
|
|
|
'auth' => [
|
|
'routes_whitelist' => [
|
|
Action\HealthAction::class,
|
|
Action\ShortUrl\SingleStepCreateShortUrlAction::class,
|
|
ConfigProvider::UNVERSIONED_HEALTH_ENDPOINT_NAME,
|
|
],
|
|
],
|
|
|
|
'dependencies' => [
|
|
'factories' => [
|
|
Middleware\AuthenticationMiddleware::class => ConfigAbstractFactory::class,
|
|
],
|
|
],
|
|
|
|
ConfigAbstractFactory::class => [
|
|
Middleware\AuthenticationMiddleware::class => [Service\ApiKeyService::class, 'config.auth.routes_whitelist'],
|
|
],
|
|
|
|
];
|