mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-08 12:13:01 -04:00
Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user