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