diff --git a/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php b/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php index f3ca635347..59f4160fb8 100644 --- a/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php +++ b/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php @@ -264,7 +264,7 @@ class V1 extends Api implements ControllerProviderInterface, ServiceProviderInte $controllers->get('/me/', 'controller.api.v1:getCurrentUserAction'); $controllers->delete('/me/', 'controller.api.v1:deleteCurrentUserAction'); - $controllers->get('/me/structure/', 'controller.api.v1:getCurrentUserStructureAction'); + $controllers->get('/me/structures/', 'controller.api.v1:getCurrentUserStructureAction'); $controllers->get('/me/subdefs/', 'controller.api.v1:getCurrentUserSubdefsAction'); diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php index 963a5cb1ad..b68bbbb358 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php @@ -101,7 +101,7 @@ abstract class ApiTestCase extends \PhraseanetWebTestCase { $this->setToken($this->userAccessToken); - $route = '/api/v1/me/structure/'; + $route = '/api/v1/me/structures/'; $this->evaluateMethodNotAllowedRoute($route, [ 'POST', 'PUT' ]);