mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge pull request #1425 from aztech-dev/api-collections-4.0
Add API get collection route
This commit is contained in:
@@ -462,6 +462,13 @@ class V1Controller extends Controller
|
||||
];
|
||||
}
|
||||
|
||||
public function getDataboxCollectionAction(Request $request, $base_id)
|
||||
{
|
||||
return Result::create($request, [
|
||||
$this->listCollection($this->app->getApplicationBox()->get_collection($base_id))
|
||||
])->createResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a Response containing the collections of a \databox
|
||||
*
|
||||
|
Reference in New Issue
Block a user