From 1cbd9acd855db88107ed57cdaf774e73a5da92c3 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 20 Aug 2026 00:08:05 +0000 Subject: [PATCH] fix: Fix auth routes with new typed routing --- src/backend/server/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/server/auth.ts b/src/backend/server/auth.ts index b151da92..a56a30f5 100644 --- a/src/backend/server/auth.ts +++ b/src/backend/server/auth.ts @@ -36,7 +36,7 @@ export const setupAuthRoutes = (app: Express, router: ReturnType { + router.get('/client/auth', {middleware: [clientMiddle]}, async (req, res) => { const { scrobbleClient, } = req as any; @@ -54,7 +54,7 @@ export const setupAuthRoutes = (app: Express, router: ReturnType { + router.get('/source/auth', {middleware: [sourceMiddle]}, async (req, res, next) => { const { scrobbleSource: source, sourceName: name, @@ -86,7 +86,7 @@ export const setupAuthRoutes = (app: Express, router: ReturnType { + app.get(/.*callback$/, async (req, res) => { if(req.url.indexOf('/api') !== 0) { return res.redirect(307, `/api${req.url}`); } -- 2.51.2