diff options
| author | Fuwn <[email protected]> | 2024-07-22 16:00:33 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-22 16:00:33 -0700 |
| commit | a7fe390be2b812e77395738eba395835dc45f007 (patch) | |
| tree | d821839a4bc0eb8f90e676a24595f49bc716c295 /src/lib/Data/Birthday/primary.ts | |
| parent | fix(SequelSpy): use LinkedTooltip (diff) | |
| download | due.moe-a7fe390be2b812e77395738eba395835dc45f007.tar.xz due.moe-a7fe390be2b812e77395738eba395835dc45f007.zip | |
refactor(Birthday): rename modules
Diffstat (limited to 'src/lib/Data/Birthday/primary.ts')
| -rw-r--r-- | src/lib/Data/Birthday/primary.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/Data/Birthday/primary.ts b/src/lib/Data/Birthday/primary.ts new file mode 100644 index 00000000..cf4e2873 --- /dev/null +++ b/src/lib/Data/Birthday/primary.ts @@ -0,0 +1,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(); |