<?php

namespace App\Http\Controllers\Api\V1;

use App\Http\Controllers\Controller;
use App\Models\AppSetting;
use Illuminate\Http\Request;

class ConfigController extends Controller
{
    /**
     * GET /api/v1/config — device runtime config.
     */
    public function show(Request $request)
    {
        return response()->json(AppSetting::current()->toConfigArray());
    }
}
