From 2bfcf63e4aa2dcec2c50a7fdf13d079a02b8b184 Mon Sep 17 00:00:00 2001 From: Moon Man Date: Sun, 31 Dec 2023 07:50:06 -0500 Subject: [PATCH] logging --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index e24a525..0aa05ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,6 +60,8 @@ app.get(Routes.activity, async (req, res) => { const article = await getById(id); if (article) { + console.log("Request headers for activity route:", req.headers); + if (req.accepts("html")) { res.redirect(`/${article.slug}.html`); }