From d65b6b2feb9c164da55ab7cfe377389be669888d Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 12 Nov 2023 01:08:15 -0500 Subject: chore: make teawie static dir a constant --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index da1fa4a..5846a97 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,7 @@ app.get("/list_teawies", zValidator("query", list), async (c) => { return c.json( WIES.slice(0, parseInt(limit ?? "5")).map((wie) => { return { - url: `${c.env.URL ?? "https://api.mydadleft.me"}/static/teawie/${wie}`, + url: `${c.env.URL ?? "https://api.mydadleft.me"}/${WIE_DIR}/${wie}`, }; }), ); @@ -34,7 +34,7 @@ app.get("/random_teawie", (c) => { const wie = WIES[Math.floor(Math.random() * WIES.length)]; return c.json({ - url: `${c.env.URL ?? "https://api.mydadleft.me"}/static/${wie}`, + url: `${c.env.URL ?? "https://api.mydadleft.me"}/${WIE_DIR}/${wie}`, }); }); -- cgit v1.2.3