mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +00:00
24 lines
704 B
TypeScript
24 lines
704 B
TypeScript
import { BaseApiService } from '@/services/api/base';
|
|
import { httpClient, httpClientFetcher } from '@/services/http/client';
|
|
import { BaseApiResponse } from '@/types/api/api-general';
|
|
import { ReportExpense } from '@/types/api/report/report-expense';
|
|
import axios from 'axios';
|
|
|
|
export class ReportExpenseApiService extends BaseApiService<
|
|
ReportExpense,
|
|
unknown,
|
|
unknown
|
|
> {
|
|
constructor(basePath: string) {
|
|
super(basePath);
|
|
}
|
|
|
|
async getAllFetcher(
|
|
endpoint: string
|
|
): Promise<BaseApiResponse<ReportExpense[]>> {
|
|
return await httpClientFetcher<BaseApiResponse<ReportExpense[]>>(endpoint);
|
|
}
|
|
}
|
|
|
|
export const ReportExpenseApi = new ReportExpenseApiService('/reports/expense');
|