mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Improved QR code generation route
This commit is contained in:
parent
60c68c914b
commit
15247e832e
1 changed files with 12 additions and 1 deletions
|
@ -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'],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue