mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
import apiClient from './clients/api-client';
|
|
import { AxiosResponse } from 'axios';
|
|
import { EventTheme } from '../models/event-theme';
|
|
|
|
export default class EventThemeAPI {
|
|
async index (): Promise<Array<EventTheme>> {
|
|
const res: AxiosResponse<Array<EventTheme>> = await apiClient.get(`/api/event_themes`);
|
|
return res?.data;
|
|
}
|
|
}
|
|
|