shlink/module/Rest/config/routes.config.php

36 lines
1.1 KiB
PHP
Raw Normal View History

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);
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
Action\ShortUrl\CreateShortUrlAction::getRouteDef([
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
]),
Action\ShortUrl\SingleStepCreateShortUrlAction::getRouteDef([
Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class,
]),
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
Action\Tag\ListTagsAction::getRouteDef(),
Action\Tag\DeleteTagsAction::getRouteDef(),
Action\Tag\CreateTagsAction::getRouteDef(),
Action\Tag\UpdateTagAction::getRouteDef(),
2016-07-19 17:07:59 +02:00
],
];