2016-07-19 18:07:59 +03:00
|
|
|
<?php
|
2017-10-12 11:13:20 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-05-03 19:26:31 +03:00
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
|
2016-07-19 18:07:59 +03:00
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
2018-05-01 19:28:37 +03:00
|
|
|
Action\AuthenticateAction::getRouteDef(),
|
2018-12-23 12:18:38 +03:00
|
|
|
Action\HealthAction::getRouteDef(),
|
2017-07-07 14:12:45 +03:00
|
|
|
|
|
|
|
// Short codes
|
2018-09-20 20:55:24 +03:00
|
|
|
Action\ShortUrl\CreateShortUrlAction::getRouteDef([
|
2018-09-20 21:00:53 +03:00
|
|
|
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
|
2018-05-03 19:26:31 +03:00
|
|
|
]),
|
2018-09-20 20:55:24 +03:00
|
|
|
Action\ShortUrl\SingleStepCreateShortUrlAction::getRouteDef([
|
2018-09-20 21:00:53 +03:00
|
|
|
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
|
2018-05-03 19:26:31 +03:00
|
|
|
]),
|
2018-09-20 20:55:24 +03:00
|
|
|
Action\ShortUrl\EditShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\DeleteShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\ResolveShortUrlAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\ListShortUrlsAction::getRouteDef(),
|
|
|
|
Action\ShortUrl\EditShortUrlTagsAction::getRouteDef(),
|
2017-07-07 14:12:45 +03:00
|
|
|
|
|
|
|
// Visits
|
2018-05-03 19:04:00 +03:00
|
|
|
Action\Visit\GetVisitsAction::getRouteDef(),
|
2017-07-07 14:12:45 +03:00
|
|
|
|
|
|
|
// Tags
|
2018-05-01 19:28:37 +03:00
|
|
|
Action\Tag\ListTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\DeleteTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\CreateTagsAction::getRouteDef(),
|
|
|
|
Action\Tag\UpdateTagAction::getRouteDef(),
|
2016-07-19 18:07:59 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|