Improved visits REST endpoint path

This commit is contained in:
Alejandro Celaya 2016-07-21 10:16:36 +02:00
parent 0ef9db0bdf
commit 3ba51c5390
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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'],
],