engelsystem/src/Middleware/SessionHandlerServiceProvid...

27 lines
605 B
PHP

<?php
namespace Engelsystem\Middleware;
use Engelsystem\Container\ServiceProvider;
class SessionHandlerServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app
->when(SessionHandler::class)
->needs('$paths')
->give(function () {
return [
'/api',
'/atom',
'/health',
'/ical',
'/metrics',
'/shifts-json-export',
'/stats',
];
});
}
}