mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHRAS-1911 : fix route me/structures
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
|
@@ -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' ]);
|
||||
|
||||
|
Reference in New Issue
Block a user