mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Improved visits REST endpoint path
This commit is contained in:
parent
0ef9db0bdf
commit
3ba51c5390
2 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ Posible errors:
|
||||||
|
|
||||||
**REQUEST**
|
**REQUEST**
|
||||||
|
|
||||||
* `GET` -> `/rest/visits/{shortCode}`
|
* `GET` -> `/rest/short-codes/{shortCode}/visits`
|
||||||
* Route params:
|
* Route params:
|
||||||
* shortCode: `string` -> The shortCode from which we eant to get the visits.
|
* shortCode: `string` -> The shortCode from which we eant to get the visits.
|
||||||
* Query params:
|
* Query params:
|
||||||
|
|
|
@ -30,7 +30,7 @@ return [
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'rest-get-visits',
|
'name' => 'rest-get-visits',
|
||||||
'path' => '/rest/visits/{shortCode}',
|
'path' => '/rest/short-codes/{shortCode}/visits',
|
||||||
'middleware' => Action\GetVisitsMiddleware::class,
|
'middleware' => Action\GetVisitsMiddleware::class,
|
||||||
'allowed_methods' => ['GET', 'OPTIONS'],
|
'allowed_methods' => ['GET', 'OPTIONS'],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue