shlink/config/autoload/routes.global.php

16 lines
300 B
PHP
Raw Normal View History

2016-04-10 02:38:07 -05:00
<?php
use Acelaya\UrlShortener\Middleware\Routable;
2016-04-10 02:38:07 -05:00
return [
'routes' => [
[
'name' => 'long-url-redirect',
'path' => '/{shortCode}',
'middleware' => Routable\RedirectMiddleware::class,
'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
];