* Suggestion: let prettier sort imports order # Conflicts: # yarn.lock * AUTO SORT ALL THE IMPORTS * Linting * Fixes test
12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import { EventType } from "@prisma/client";
|
|
|
|
import * as fetch from "@lib/core/http/fetch-wrapper";
|
|
|
|
type GetEventsResponse = { message: string; data: EventType[] };
|
|
const getEventTypes = async () => {
|
|
const response = await fetch.get<GetEventsResponse>("/api/event-type");
|
|
return response.data;
|
|
};
|
|
|
|
export default getEventTypes;
|