* deploy script added
* los basepath middleware added
This commit is contained in:
9
config/autoload/los-basepath.global.php
Normal file
9
config/autoload/los-basepath.global.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'dependencies' => [
|
||||
'factories' => [
|
||||
LosMiddleware\BasePath\BasePath::class => LosMiddleware\BasePath\BasePathFactory::class,
|
||||
],
|
||||
],
|
||||
];
|
||||
5
config/autoload/los-basepath.local.php.dist
Normal file
5
config/autoload/los-basepath.local.php.dist
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'los_basepath' => '',
|
||||
];
|
||||
@@ -23,6 +23,7 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac
|
||||
// The error handler should be the first (most outer) middleware to catch
|
||||
// all Exceptions.
|
||||
$app->pipe(ErrorHandler::class);
|
||||
$app->pipe(LosMiddleware\BasePath\BasePath::class);
|
||||
$app->pipe(ServerUrlMiddleware::class);
|
||||
|
||||
// Pipe more middleware here that you want to execute on every request:
|
||||
|
||||
Reference in New Issue
Block a user