aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/Birthday/primary.ts
blob: cf4e2873517c3a3056adb817b561ca610c2efbc9 (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/primary?month=${month}&day=${day}`), {})).json();