aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/Birthday/primary.ts
blob: 89a765bc128f430a8084d5b8ec35c7af6019689e (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();