diff --git a/data/docs/rest.md b/data/docs/rest.md index d006c6c5..09147518 100644 --- a/data/docs/rest.md +++ b/data/docs/rest.md @@ -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: diff --git a/module/Rest/config/routes.config.php b/module/Rest/config/routes.config.php index e8abb6fe..24226840 100644 --- a/module/Rest/config/routes.config.php +++ b/module/Rest/config/routes.config.php @@ -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'], ],