diff options
| author | Fuwn <[email protected]> | 2023-12-03 15:43:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-03 15:43:05 -0800 |
| commit | 841b28a408df43b5380fa00388075a07129f7146 (patch) | |
| tree | 901c731e66c8d1f3a335148732f655be9a79be9f /src/lib/Birthday | |
| parent | feat(wrapped): remove old colour preview (diff) | |
| download | due.moe-841b28a408df43b5380fa00388075a07129f7146.tar.xz due.moe-841b28a408df43b5380fa00388075a07129f7146.zip | |
feat(birthdays): add second birthday source
Diffstat (limited to 'src/lib/Birthday')
| -rw-r--r-- | src/lib/Birthday/aniSearch.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/Birthday/aniSearch.ts b/src/lib/Birthday/aniSearch.ts new file mode 100644 index 00000000..a938f7ba --- /dev/null +++ b/src/lib/Birthday/aniSearch.ts @@ -0,0 +1,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(); |