1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00

Write test for specifying headers in TenantAssetController, fix error introduced in previous commit

This commit is contained in:
Samuel Štancl 2024-03-19 20:36:01 +01:00
parent a39da042af
commit cc2d555e3e
2 changed files with 27 additions and 2 deletions

View file

@ -16,7 +16,6 @@ class TenantAssetController implements HasMiddleware // todo@docs this was renam
{
/**
* Used for adding custom headers to the response.
* todo@tests add a test for this
*
* @var (Closure(Request): array)|null
*/
@ -33,7 +32,7 @@ class TenantAssetController implements HasMiddleware // todo@docs this was renam
{
return [
new Middleware(array_merge(
tenancy()->defaultMiddleware(),
[tenancy()->defaultMiddleware()],
static::$middleware,
)),
];