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

36 lines
1.1 KiB
PHP
Raw Normal View History

2016-07-19 18:07:59 +03:00
<?php
2017-10-12 11:13:20 +03:00
declare(strict_types=1);
namespace Shlinkio\Shlink\Rest;
2017-10-12 11:13:20 +03:00
use Shlinkio\Shlink\Rest\Action;
2016-07-19 18:07:59 +03:00
return [
'routes' => [
Action\AuthenticateAction::getRouteDef(),
2017-07-07 14:12:45 +03:00
// Short codes
Action\ShortCode\CreateShortCodeAction::getRouteDef([
Middleware\ShortCode\CreateShortCodeContentNegotiationMiddleware::class,
]),
Action\ShortCode\SingleStepCreateShortCodeAction::getRouteDef([
Middleware\ShortCode\CreateShortCodeContentNegotiationMiddleware::class,
]),
2018-05-03 19:00:32 +03:00
Action\ShortCode\EditShortCodeAction::getRouteDef(),
2018-05-03 19:02:45 +03:00
Action\ShortCode\ResolveUrlAction::getRouteDef(),
2018-05-03 19:01:57 +03:00
Action\ShortCode\ListShortCodesAction::getRouteDef(),
2018-05-03 19:03:10 +03:00
Action\ShortCode\EditShortCodeTagsAction::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
Action\Tag\ListTagsAction::getRouteDef(),
Action\Tag\DeleteTagsAction::getRouteDef(),
Action\Tag\CreateTagsAction::getRouteDef(),
Action\Tag\UpdateTagAction::getRouteDef(),
2016-07-19 18:07:59 +03:00
],
];