shlink/module/Core/config/routes.config.php
2016-08-09 10:25:30 +02:00

22 lines
500 B
PHP

<?php
use Shlinkio\Shlink\Core\Action;
return [
'routes' => [
[
'name' => 'long-url-redirect',
'path' => '/{shortCode}',
'middleware' => Action\RedirectAction::class,
'allowed_methods' => ['GET'],
],
[
'name' => 'short-url-qr-code',
'path' => '/qr/{shortCode}[/{size:[0-9]+}]',
'middleware' => Action\QrCodeAction::class,
'allowed_methods' => ['GET'],
],
],
];