1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-27 16:52:21 +01:00

11 lines
386 B
TypeScript
Raw Normal View History

import apiClient from './clients/api-client';
import { AxiosResponse } from 'axios';
2020-11-24 16:26:18 +01:00
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;
}
}