mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
use sdk formats manager for retrieving formats list
This commit is contained in:
@ -18,14 +18,14 @@
|
||||
namespace App\Http\Controllers\API;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Repositories\FormatRepository;
|
||||
use Onlyoffice\DocsIntegrationSdk\Manager\Formats\FormatsManager;
|
||||
|
||||
class FormatController extends Controller
|
||||
{
|
||||
public function index(FormatRepository $formats)
|
||||
public function index(FormatsManager $formats)
|
||||
{
|
||||
return response()->json([
|
||||
'formats' => $formats->all(),
|
||||
'formats' => $formats->getFormatsList(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user