2016-07-19 17:07:59 +02:00
|
|
|
<?php
|
2019-10-05 17:26:10 +02:00
|
|
|
|
2017-10-12 10:13:20 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-05-03 18:26:31 +02:00
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
|
2016-07-19 17:07:59 +02:00
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
2018-12-23 10:18:38 +01:00
|
|
|
Action\HealthAction::getRouteDef(),
|
2017-07-07 13:12:45 +02:00
|
|
|
|
|
|
|
// Short codes
|
2018-09-20 19:55:24 +02:00
|
|
|
Action\ShortUrl\CreateShortUrlAction::getRouteDef([
|
2018-09-20 20:00:53 +02:00
|
|
|
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
|
2018-05-03 18:26:31 +02:00
|
|
|
]),
|
2018-09-20 19:55:24 +02:00
|
|
|
Action\ShortUrl\SingleStepCreateShortUrlAction::getRouteDef([
|
2018-09-20 20:00:53 +02:00
|
|
|
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
|
2018-05-03 18:26:31 +02:00
|
|
|
]),
|
2018-09-20 19:55:24 +02:00
|
|
|
Action\ShortUrl\EditShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\DeleteShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\ResolveShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\ListShortUrlsAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\EditShortUrlTagsAction::getRouteDef(),
|
2017-07-07 13:12:45 +02:00
|
|
|
|
|
|
|
// Visits
|
2018-05-03 18:04:00 +02:00
|
|
|
Action\Visit\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
|
|
|
],
|
|
|
|
|
|
|
|
];
|