mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 15:13:59 -06:00
Improved visits REST endpoint path
This commit is contained in:
parent
0ef9db0bdf
commit
3ba51c5390
@ -222,7 +222,7 @@ Posible errors:
|
||||
|
||||
**REQUEST**
|
||||
|
||||
* `GET` -> `/rest/visits/{shortCode}`
|
||||
* `GET` -> `/rest/short-codes/{shortCode}/visits`
|
||||
* Route params:
|
||||
* shortCode: `string` -> The shortCode from which we eant to get the visits.
|
||||
* Query params:
|
||||
|
@ -30,7 +30,7 @@ return [
|
||||
],
|
||||
[
|
||||
'name' => 'rest-get-visits',
|
||||
'path' => '/rest/visits/{shortCode}',
|
||||
'path' => '/rest/short-codes/{shortCode}/visits',
|
||||
'middleware' => Action\GetVisitsMiddleware::class,
|
||||
'allowed_methods' => ['GET', 'OPTIONS'],
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user