mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-28 09:03:07 +03:00
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Fig\Http\Message\RequestMethodInterface as RequestMethod;
|
|
use Shlinkio\Shlink\Rest\Action;
|
|
|
|
return [
|
|
|
|
'routes' => [
|
|
Action\AuthenticateAction::getRouteDef(),
|
|
|
|
// Short codes
|
|
[
|
|
'name' => Action\CreateShortcodeAction::class,
|
|
'path' => '/short-codes',
|
|
'middleware' => Action\CreateShortcodeAction::class,
|
|
'allowed_methods' => [RequestMethod::METHOD_POST],
|
|
],
|
|
// [
|
|
// 'name' => Action\CreateShortcodeAction::class,
|
|
// 'path' => '/short-codes',
|
|
// 'middleware' => Action\CreateShortcodeAction::class,
|
|
// 'allowed_methods' => [RequestMethod::METHOD_GET],
|
|
// ],
|
|
Action\EditShortCodeAction::getRouteDef(),
|
|
Action\ResolveUrlAction::getRouteDef(),
|
|
Action\ListShortcodesAction::getRouteDef(),
|
|
Action\EditShortcodeTagsAction::getRouteDef(),
|
|
|
|
// Visits
|
|
Action\GetVisitsAction::getRouteDef(),
|
|
|
|
// Tags
|
|
Action\Tag\ListTagsAction::getRouteDef(),
|
|
Action\Tag\DeleteTagsAction::getRouteDef(),
|
|
Action\Tag\CreateTagsAction::getRouteDef(),
|
|
Action\Tag\UpdateTagAction::getRouteDef(),
|
|
],
|
|
|
|
];
|