Removed hardcoded route names for core routes and used action class names instead

This commit is contained in:
Alejandro Celaya
2019-11-02 18:36:15 +01:00
parent eeb5306883
commit 01f60614ef
4 changed files with 8 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ return [
'routes' => [
[
'name' => 'long-url-redirect',
'name' => Action\RedirectAction::class,
'path' => '/{shortCode}',
'middleware' => [
IpAddress::class,
@@ -20,7 +20,7 @@ return [
'allowed_methods' => [RequestMethod::METHOD_GET],
],
[
'name' => 'pixel-tracking',
'name' => Action\PixelAction::class,
'path' => '/{shortCode}/track',
'middleware' => [
IpAddress::class,
@@ -29,7 +29,7 @@ return [
'allowed_methods' => [RequestMethod::METHOD_GET],
],
[
'name' => 'short-url-qr-code',
'name' => Action\QrCodeAction::class,
'path' => '/{shortCode}/qr-code[/{size:[0-9]+}]',
'middleware' => [
Middleware\QrCodeCacheMiddleware::class,