<?php

namespace App\Http\Controllers;

use App\Models\TipoPago;
use Illuminate\Http\JsonResponse;

class TipoPagoController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(): JsonResponse
    {
        $tipo=TipoPago::where(['estatus'=>'activo'])->get();
        return response()->json([
            'data' =>$tipo,
        ], JsonResponse::HTTP_OK);
    }
}
