File "getDetailModel.ts"

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

import { axiosInstance } from "@shared/api";

export const getDetailModel = async (modelId: number) => {
    try {
        const result = await axiosInstance.get(`model/${modelId}`);
        return result?.data
    } catch (error) {
        console.error('getDetailModel error', error)
    }
}