2016-04-10 02:38:07 -05:00
|
|
|
<?php
|
2016-08-09 03:24:42 -05:00
|
|
|
use Shlinkio\Shlink\Core\Action;
|
2016-04-10 02:38:07 -05:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
2016-04-30 11:59:03 -05:00
|
|
|
[
|
|
|
|
'name' => 'long-url-redirect',
|
|
|
|
'path' => '/{shortCode}',
|
2016-08-09 03:24:42 -05:00
|
|
|
'middleware' => Action\RedirectAction::class,
|
|
|
|
'allowed_methods' => ['GET'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'short-url-qr-code',
|
|
|
|
'path' => '/qr/{shortCode}[/{size:[0-9]+}]',
|
|
|
|
'middleware' => Action\QrCodeAction::class,
|
2016-04-30 11:59:03 -05:00
|
|
|
'allowed_methods' => ['GET'],
|
|
|
|
],
|
2016-04-10 02:38:07 -05:00
|
|
|
],
|
2016-04-17 12:34:16 -05:00
|
|
|
|
2016-04-10 02:38:07 -05:00
|
|
|
];
|