From ff4587da9d633b8275d84e06f6608551cc81b3ff Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 8 Feb 2024 00:02:16 -0800 Subject: refactor(birthdays): move to data module --- src/lib/Birthday/aniSearch.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/lib/Birthday/aniSearch.ts (limited to 'src/lib/Birthday/aniSearch.ts') diff --git a/src/lib/Birthday/aniSearch.ts b/src/lib/Birthday/aniSearch.ts deleted file mode 100644 index 3fa77f61..00000000 --- a/src/lib/Birthday/aniSearch.ts +++ /dev/null @@ -1,12 +0,0 @@ -import root from '$lib/Utility/root'; - -export interface aniSearchBirthday { - name: string; - image: string; -} - -export const aniSearchBirthdays = async ( - month: number, - day: number -): Promise => - await (await fetch(root(`/api/birthdays/anisearch?month=${month}&day=${day}`), {})).json(); -- cgit v1.2.3