File "getModels.ts"

Full Path: /var/www/html/gitep_front/src/entities/models/api/getModels.ts
File size: 379 bytes
MIME-type: text/x-java
Charset: utf-8

import { $modelStore } from '@shared/index';
import { axiosInstance } from "@shared/api";

export const getModels = async (modelId: any,activeTab: string) => {
    try {
        const result = await axiosInstance.get(`models/${modelId}`, {params: {activeTab: activeTab}});
        return result?.data
    } catch (error) {
        console.error('getModels error', error)
    }
}