1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-09 03:54:23 +01:00
2022-12-21 14:05:14 +01:00

11 lines
333 B
TypeScript

import apiClient from './clients/api-client';
import { AxiosResponse } from 'axios';
import { AgeRange } from '../models/event';
export default class AgeRangeAPI {
static async index (): Promise<Array<AgeRange>> {
const res: AxiosResponse<Array<AgeRange>> = await apiClient.get('/api/age_ranges');
return res?.data;
}
}