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