From 9da7927c13e06026112ee84311517d9f762aeca0 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Wed, 15 Nov 2023 14:15:55 -0500 Subject: [PATCH] Workaround for api home redir not working --- src/realms/api/router.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/realms/api/router.ts b/src/realms/api/router.ts index ad59614..71b29e9 100644 --- a/src/realms/api/router.ts +++ b/src/realms/api/router.ts @@ -27,4 +27,5 @@ api.get('/robots.txt', async c => c.text(Strings.ROBOTS_TXT_API)); api.get('/:handle', profileRequest); api.get('/:handle/', profileRequest); -api.get('/', async c => c.redirect(Constants.API_DOCS_URL, 302)); +/* TODO: Figure out why / won't resolve but * does */ +api.get('*', async c => c.redirect(Constants.API_DOCS_URL, 302)); \ No newline at end of file