mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-26 15:52:20 +01:00
11 lines
386 B
TypeScript
11 lines
386 B
TypeScript
import apiClient from './clients/api-client';
|
|
import { AxiosResponse } from 'axios';
|
|
import { CustomAsset, CustomAssetName } from '../models/custom-asset';
|
|
|
|
export default class CustomAssetAPI {
|
|
static async get (name: CustomAssetName): Promise<CustomAsset> {
|
|
const res: AxiosResponse = await apiClient.get(`/api/custom_assets/${name}`);
|
|
return res?.data?.custom_asset;
|
|
}
|
|
}
|