feat: creats frontend for the project
This commit is contained in:
8
frontend/src/api/import.ts
Normal file
8
frontend/src/api/import.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { ImportStatementResponse } from '@family-budget/shared';
|
||||
import { api } from './client';
|
||||
|
||||
export async function importStatement(
|
||||
file: unknown,
|
||||
): Promise<ImportStatementResponse> {
|
||||
return api.post<ImportStatementResponse>('/api/import/statement', file);
|
||||
}
|
||||
Reference in New Issue
Block a user