aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/Birthday/aniSearch.ts
blob: 3fa77f6126a2bdc6e60d889cddde725df7d13bd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import root from '$lib/Utility/root';

export interface aniSearchBirthday {
	name: string;
	image: string;
}

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