Files
numstation-web/wave/src/Http/Controllers/API/TermsAndConditionsController.php
2023-12-22 12:35:55 +08:00

20 lines
482 B
PHP

<?php
namespace Wave\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\SiteSetting;
class TermsAndConditionsController extends Controller
{
public function index()
{
$siteSetting = SiteSetting::latest()->first();
return response()->json([
'message' => 'Terms and conditions has successfully retrieved!',
'terms_and_conditions' => $siteSetting ? $siteSetting->terms_and_conditions : '',
]);
}
}