From 6620bc00fdf5173ffb20a9057a4580b59410dbd7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 8 Jan 2024 15:27:28 -0800 Subject: feat(tools): new tools url method --- src/lib/Birthday/aniSearch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Birthday/aniSearch.ts') diff --git a/src/lib/Birthday/aniSearch.ts b/src/lib/Birthday/aniSearch.ts index a938f7ba..3fa77f61 100644 --- a/src/lib/Birthday/aniSearch.ts +++ b/src/lib/Birthday/aniSearch.ts @@ -1,3 +1,5 @@ +import root from '$lib/Utility/root'; + export interface aniSearchBirthday { name: string; image: string; @@ -7,4 +9,4 @@ export const aniSearchBirthdays = async ( month: number, day: number ): Promise => - await (await fetch(`/api/birthdays/anisearch?month=${month}&day=${day}`, {})).json(); + await (await fetch(root(`/api/birthdays/anisearch?month=${month}&day=${day}`), {})).json(); -- cgit v1.2.3