There is a new ENV variable WS_API_LOG_INTERNAL to enable it if you desire, it's mostly helpful for development. Internal API requests no longer require API key. Migrated system:env to use the API in effort to reduce code duplicating There going to be more code cleaning later on once we migrate the majority of the code to the API.
12 lines
297 B
PHP
12 lines
297 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Libs\Middlewares\{APIKeyRequiredMiddleware, NoAccessLogMiddleware, ParseJsonBodyMiddleware};
|
|
|
|
return static fn(): array => [
|
|
fn() => new APIKeyRequiredMiddleware(),
|
|
fn() => new ParseJsonBodyMiddleware(),
|
|
fn() => new NoAccessLogMiddleware(),
|
|
];
|