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

35 lines
983 B
PHP
Raw Normal View History

2016-07-19 17:07:59 +02:00
<?php
2017-10-12 10:13:20 +02:00
declare(strict_types=1);
use Shlinkio\Shlink\Rest\Action;
2016-07-19 17:07:59 +02:00
return [
'routes' => [
Action\AuthenticateAction::getRouteDef(),
2017-07-07 13:12:45 +02:00
// Short codes
2018-05-03 12:19:51 +02:00
Action\CreateShortCodeAction::getRouteDef(),
2018-05-01 10:10:19 +02:00
// [
2018-05-03 12:19:51 +02:00
// 'name' => Action\CreateShortCodeAction::class,
2018-05-01 10:10:19 +02:00
// 'path' => '/short-codes',
2018-05-03 12:19:51 +02:00
// 'middleware' => Action\CreateShortCodeAction::class,
2018-05-01 10:10:19 +02:00
// 'allowed_methods' => [RequestMethod::METHOD_GET],
// ],
Action\EditShortCodeAction::getRouteDef(),
Action\ResolveUrlAction::getRouteDef(),
2018-05-03 12:19:51 +02:00
Action\ListShortCodesAction::getRouteDef(),
Action\EditShortCodeTagsAction::getRouteDef(),
2017-07-07 13:12:45 +02:00
// Visits
Action\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
],
];