2016-07-19 17:07:59 +02:00
|
|
|
<?php
|
2017-10-12 10:13:20 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
2016-07-19 17:07:59 +02:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
2018-05-01 18:28:37 +02:00
|
|
|
Action\AuthenticateAction::getRouteDef(),
|
2017-07-07 13:12:45 +02:00
|
|
|
|
|
|
|
// Short codes
|
2018-05-03 12:19:51 +02:00
|
|
|
Action\CreateShortCodeAction::getRouteDef(),
|
2018-05-01 10:10:19 +02:00
|
|
|
// [
|
2018-05-03 12:19:51 +02:00
|
|
|
// 'name' => Action\CreateShortCodeAction::class,
|
2018-05-01 10:10:19 +02:00
|
|
|
// 'path' => '/short-codes',
|
2018-05-03 12:19:51 +02:00
|
|
|
// 'middleware' => Action\CreateShortCodeAction::class,
|
2018-05-01 10:10:19 +02:00
|
|
|
// 'allowed_methods' => [RequestMethod::METHOD_GET],
|
|
|
|
// ],
|
2018-05-01 18:28:37 +02:00
|
|
|
Action\EditShortCodeAction::getRouteDef(),
|
|
|
|
Action\ResolveUrlAction::getRouteDef(),
|
2018-05-03 12:19:51 +02:00
|
|
|
Action\ListShortCodesAction::getRouteDef(),
|
|
|
|
Action\EditShortCodeTagsAction::getRouteDef(),
|
2017-07-07 13:12:45 +02:00
|
|
|
|
|
|
|
// Visits
|
2018-05-01 18:28:37 +02:00
|
|
|
Action\GetVisitsAction::getRouteDef(),
|
2017-07-07 13:12:45 +02:00
|
|
|
|
|
|
|
// Tags
|
2018-05-01 18:28:37 +02:00
|
|
|
Action\Tag\ListTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\DeleteTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\CreateTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\UpdateTagAction::getRouteDef(),
|
2016-07-19 17:07:59 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|