mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Add Archive download to Api v2 orders
This commit is contained in:
@@ -56,6 +56,8 @@ class V2 implements ControllerProviderInterface, ServiceProviderInterface
|
||||
return (new ApiOrderController($app))
|
||||
->setDispatcher($app['dispatcher'])
|
||||
->setEntityManagerLocator(new LazyLocator($app, 'orm.em'))
|
||||
->setDelivererLocator(new LazyLocator($app, 'phraseanet.file-serve'))
|
||||
->setFileSystemLocator(new LazyLocator($app, 'filesystem'))
|
||||
->setJsonBodyHelper($app['json.body_helper']);
|
||||
}
|
||||
);
|
||||
@@ -116,6 +118,10 @@ class V2 implements ControllerProviderInterface, ServiceProviderInterface
|
||||
->assert('orderId', '\d+')
|
||||
->bind('api_v2_orders_deny');
|
||||
|
||||
$controllers->get('/orders/{orderId}/archive', 'controller.api.v2.orders:getArchiveAction')
|
||||
->assert('orderId', '\d+')
|
||||
->bind('api_v2_orders_archive');
|
||||
|
||||
return $controllers;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user