new features, bookstack
This commit is contained in:
@@ -146,4 +146,11 @@ export const eventsApi = {
|
||||
)
|
||||
.then((r) => r.data.data);
|
||||
},
|
||||
|
||||
/** Bulk-import events from CSV-parsed data */
|
||||
importEvents(events: CreateVeranstaltungInput[]): Promise<{ created: number; errors: string[] }> {
|
||||
return api
|
||||
.post<ApiResponse<{ created: number; errors: string[] }>>('/api/events/import', { events })
|
||||
.then((r) => r.data.data);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user