Created middleware which ensures trailing slash and multi-segment features work properly together

This commit is contained in:
Alejandro Celaya
2022-09-30 17:19:07 +02:00
parent c6c4e5580b
commit 3dda49dab4
7 changed files with 133 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ return [
ShortUrl\Helper\ShortUrlRedirectionBuilder::class => ConfigAbstractFactory::class,
ShortUrl\Transformer\ShortUrlDataTransformer::class => ConfigAbstractFactory::class,
ShortUrl\Middleware\ExtraPathRedirectMiddleware::class => ConfigAbstractFactory::class,
ShortUrl\Middleware\TrimTrailingSlashMiddleware::class => ConfigAbstractFactory::class,
Tag\TagService::class => ConfigAbstractFactory::class,
@@ -154,6 +155,7 @@ return [
Util\RedirectResponseHelper::class,
Options\UrlShortenerOptions::class,
],
ShortUrl\Middleware\TrimTrailingSlashMiddleware::class => [Options\UrlShortenerOptions::class],
EventDispatcher\PublishingUpdatesGenerator::class => [
ShortUrl\Transformer\ShortUrlDataTransformer::class,