From 69f7f50f5faaed088123ac4ec413c5a3d795f2ce Mon Sep 17 00:00:00 2001 From: Collin Duncan <3679940+cgduncan7@users.noreply.github.com> Date: Wed, 8 Feb 2023 13:50:12 +0100 Subject: [PATCH] Fixing issue with router expecting a trailing slash for GET /cron --- src/server/http/routes/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/http/routes/cron.ts b/src/server/http/routes/cron.ts index 7f4ebab..ad4957f 100644 --- a/src/server/http/routes/cron.ts +++ b/src/server/http/routes/cron.ts @@ -11,7 +11,7 @@ export class CronRouter extends Router { const { url = '', method } = req const [route] = url.split('?') switch (true) { - case /^\/cron\/$/.test(route) && method === 'GET': { + case /^\/cron\/?$/.test(route) && method === 'GET': { await this.GET_cron(req, res) break }