2016-07-19 10:07:59 -05:00
|
|
|
<?php
|
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'routes' => [
|
|
|
|
[
|
|
|
|
'name' => 'rest-authenticate',
|
|
|
|
'path' => '/rest/authenticate',
|
2016-07-27 13:22:50 -05:00
|
|
|
'middleware' => Action\AuthenticateAction::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
'allowed_methods' => ['POST', 'OPTIONS'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'rest-create-shortcode',
|
|
|
|
'path' => '/rest/short-codes',
|
2016-07-27 13:22:50 -05:00
|
|
|
'middleware' => Action\CreateShortcodeAction::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
'allowed_methods' => ['POST', 'OPTIONS'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'rest-resolve-url',
|
|
|
|
'path' => '/rest/short-codes/{shortCode}',
|
2016-07-27 13:22:50 -05:00
|
|
|
'middleware' => Action\ResolveUrlAction::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
'allowed_methods' => ['GET', 'OPTIONS'],
|
|
|
|
],
|
|
|
|
[
|
2016-07-26 12:09:54 -05:00
|
|
|
'name' => 'rest-list-shortened-url',
|
2016-07-19 10:07:59 -05:00
|
|
|
'path' => '/rest/short-codes',
|
2016-07-27 13:22:50 -05:00
|
|
|
'middleware' => Action\ListShortcodesAction::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
'allowed_methods' => ['GET'],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'rest-get-visits',
|
2016-07-21 03:16:36 -05:00
|
|
|
'path' => '/rest/short-codes/{shortCode}/visits',
|
2016-07-27 13:22:50 -05:00
|
|
|
'middleware' => Action\GetVisitsAction::class,
|
2016-07-19 10:07:59 -05:00
|
|
|
'allowed_methods' => ['GET', 'OPTIONS'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|