diff options
| author | seth <[email protected]> | 2023-11-12 01:08:15 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-12 01:08:15 -0500 |
| commit | d65b6b2feb9c164da55ab7cfe377389be669888d (patch) | |
| tree | 296246918312c9ce8b9b19eb67cc1e7a9d77d7e4 /src/index.ts | |
| parent | fe72f2701ae4a4338981fd19c39008985100ddb1 (diff) | |
chore: make teawie static dir a constant
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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}`, }); }); |
