mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
use Shlinkio\Shlink\Rest\Action;
|
|
|
|
return [
|
|
|
|
'routes' => [
|
|
[
|
|
'name' => 'rest-authenticate',
|
|
'path' => '/rest/authenticate',
|
|
'middleware' => Action\AuthenticateMiddleware::class,
|
|
'allowed_methods' => ['POST', 'OPTIONS'],
|
|
],
|
|
[
|
|
'name' => 'rest-create-shortcode',
|
|
'path' => '/rest/short-codes',
|
|
'middleware' => Action\CreateShortcodeMiddleware::class,
|
|
'allowed_methods' => ['POST', 'OPTIONS'],
|
|
],
|
|
[
|
|
'name' => 'rest-resolve-url',
|
|
'path' => '/rest/short-codes/{shortCode}',
|
|
'middleware' => Action\ResolveUrlMiddleware::class,
|
|
'allowed_methods' => ['GET', 'OPTIONS'],
|
|
],
|
|
[
|
|
'name' => 'rest-lActionist-shortened-url',
|
|
'path' => '/rest/short-codes',
|
|
'middleware' => Action\ListShortcodesMiddleware::class,
|
|
'allowed_methods' => ['GET'],
|
|
],
|
|
[
|
|
'name' => 'rest-get-visits',
|
|
'path' => '/rest/visits/{shortCode}',
|
|
'middleware' => Action\GetVisitsMiddleware::class,
|
|
'allowed_methods' => ['GET', 'OPTIONS'],
|
|
],
|
|
],
|
|
|
|
];
|