2016-07-19 10:07:59 -05:00
|
|
|
<?php
|
2017-10-12 03:13:20 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-05-03 11:26:31 -05:00
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
|
2017-10-12 03:13:20 -05:00
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
2016-07-19 10:07:59 -05:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
2018-05-01 11:28:37 -05:00
|
|
|
Action\AuthenticateAction::getRouteDef(),
|
2017-07-07 06:12:45 -05:00
|
|
|
|
|
|
|
// Short codes
|
2018-05-03 11:26:31 -05:00
|
|
|
Action\ShortCode\CreateShortCodeAction::getRouteDef([
|
|
|
|
Middleware\ShortCode\CreateShortCodeContentNegotiationMiddleware::class,
|
|
|
|
]),
|
|
|
|
Action\ShortCode\SingleStepCreateShortCodeAction::getRouteDef([
|
|
|
|
Middleware\ShortCode\CreateShortCodeContentNegotiationMiddleware::class,
|
|
|
|
]),
|
2018-05-03 11:00:32 -05:00
|
|
|
Action\ShortCode\EditShortCodeAction::getRouteDef(),
|
2018-09-15 05:56:17 -05:00
|
|
|
Action\ShortCode\DeleteShortCodeAction::getRouteDef(),
|
2018-05-03 11:02:45 -05:00
|
|
|
Action\ShortCode\ResolveUrlAction::getRouteDef(),
|
2018-05-03 11:01:57 -05:00
|
|
|
Action\ShortCode\ListShortCodesAction::getRouteDef(),
|
2018-05-03 11:03:10 -05:00
|
|
|
Action\ShortCode\EditShortCodeTagsAction::getRouteDef(),
|
2017-07-07 06:12:45 -05:00
|
|
|
|
|
|
|
// Visits
|
2018-05-03 11:04:00 -05:00
|
|
|
Action\Visit\GetVisitsAction::getRouteDef(),
|
2017-07-07 06:12:45 -05:00
|
|
|
|
|
|
|
// Tags
|
2018-05-01 11:28:37 -05:00
|
|
|
Action\Tag\ListTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\DeleteTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\CreateTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\UpdateTagAction::getRouteDef(),
|
2016-07-19 10:07:59 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|