diff --git a/module/Core/config/routes.config.php b/module/Core/config/routes.config.php index 321e4aa4..a3c70aeb 100644 --- a/module/Core/config/routes.config.php +++ b/module/Core/config/routes.config.php @@ -13,7 +13,7 @@ return [ ], [ 'name' => 'short-url-qr-code', - 'path' => '/qr/{shortCode}[/{size:[0-9]+}]', + 'path' => '/{shortCode}/qr-code[/{size:[0-9]+}]', 'middleware' => [ Middleware\QrCodeCacheMiddleware::class, Action\QrCodeAction::class, @@ -26,6 +26,17 @@ return [ 'middleware' => Action\PreviewAction::class, 'allowed_methods' => ['GET'], ], + + // Old QR code route. Deprecated + [ + 'name' => 'short-url-qr-code-old', + 'path' => '/qr/{shortCode}[/{size:[0-9]+}]', + 'middleware' => [ + Middleware\QrCodeCacheMiddleware::class, + Action\QrCodeAction::class, + ], + 'allowed_methods' => ['GET'], + ], ], ];