mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 00:02:05 -04:00
29 lines
692 B
PHP
29 lines
692 B
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Http\Controllers\API;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Routing\Controller;
|
|
use Illuminate\Contracts\Support\Renderable;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Modules\StudioPlus\Services\ContentVariantsService;
|
|
|
|
class ContentVariantsController extends Controller
|
|
{
|
|
protected $service;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->service = new ContentVariantsService();
|
|
}
|
|
|
|
public function index(Request $request): JsonResponse
|
|
{
|
|
$content_variants = $this->service->getAll();
|
|
|
|
return response()->json([
|
|
'contentVariants' => $content_variants,
|
|
]);
|
|
}
|
|
}
|