aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Birthday/aniSearch.ts
blob: a938f7bafc57804409859c72e1ca0972b85c0594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
export interface aniSearchBirthday {
	name: string;
	image: string;
}

export const aniSearchBirthdays = async (
	month: number,
	day: number
): Promise<aniSearchBirthday[]> =>
	await (await fetch(`/api/birthdays/anisearch?month=${month}&day=${day}`, {})).json();