mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
$contentNegotiationMiddleware = [Middleware\ShortUrl\CreateShortUrlContentNegotiationMiddleware::class];
|
|
$dropDomainMiddleware = [Middleware\ShortUrl\DropDefaultDomainFromQueryMiddleware::class];
|
|
|
|
return [
|
|
|
|
'routes' => [
|
|
Action\HealthAction::getRouteDef(),
|
|
|
|
// Short codes
|
|
Action\ShortUrl\CreateShortUrlAction::getRouteDef($contentNegotiationMiddleware),
|
|
Action\ShortUrl\SingleStepCreateShortUrlAction::getRouteDef($contentNegotiationMiddleware),
|
|
Action\ShortUrl\EditShortUrlAction::getRouteDef($dropDomainMiddleware),
|
|
Action\ShortUrl\DeleteShortUrlAction::getRouteDef($dropDomainMiddleware),
|
|
Action\ShortUrl\ResolveShortUrlAction::getRouteDef($dropDomainMiddleware),
|
|
Action\ShortUrl\ListShortUrlsAction::getRouteDef(),
|
|
Action\ShortUrl\EditShortUrlTagsAction::getRouteDef($dropDomainMiddleware),
|
|
|
|
// Visits
|
|
Action\Visit\GetVisitsAction::getRouteDef($dropDomainMiddleware),
|
|
|
|
// Tags
|
|
Action\Tag\ListTagsAction::getRouteDef(),
|
|
Action\Tag\DeleteTagsAction::getRouteDef(),
|
|
Action\Tag\CreateTagsAction::getRouteDef(),
|
|
Action\Tag\UpdateTagAction::getRouteDef(),
|
|
],
|
|
|
|
];
|