shlink/config/autoload/routes.global.php

16 lines
300 B
PHP
Raw Normal View History

2016-04-10 10:38:07 +03:00
<?php
use Acelaya\UrlShortener\Middleware\Routable;
2016-04-10 10:38:07 +03:00
return [
'routes' => [
[
'name' => 'long-url-redirect',
'path' => '/{shortCode}',
'middleware' => Routable\RedirectMiddleware::class,
'allowed_methods' => ['GET'],
],
2016-04-10 10:38:07 +03:00
],
2016-04-17 20:34:16 +03:00
2016-04-10 10:38:07 +03:00
];