<?php

namespace App\Domains\Admin\Controllers;

use App\Scopes\CommonController;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class TenantGdprGetController extends CommonController
{
    public function __invoke(Request $request): JsonResponse
    {
        return response()->json([
            'gdpr_text' => $this->tenant->gdpr_text ?? '',
            'saveEndpoint' => '/api/v1/admin/tenant/gdpr',
        ]);
    }
}
