From 604254db508aa3b5fb6806034a58cc9914dd3549 Mon Sep 17 00:00:00 2001 From: Mario Perrotta Date: Thu, 20 Jun 2024 14:40:26 +0200 Subject: [PATCH] chore: update --- src/routers/features/it-wallet/eid/index.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/routers/features/it-wallet/eid/index.ts b/src/routers/features/it-wallet/eid/index.ts index e63a8b86..503b36c7 100644 --- a/src/routers/features/it-wallet/eid/index.ts +++ b/src/routers/features/it-wallet/eid/index.ts @@ -41,14 +41,11 @@ addHandler(itwRouter, "get", addItwPrefix("/as/par"), (req, res) => { * @param request_uri - The request_uri * @param idphint - The idphint user choice */ -addHandler( - itwRouter, - "get", - addItwPrefix("/authorize/:client_id/:request_uri/:idphint"), - (_, res) => { - res.status(200).send("authorization_token"); - } -); +addHandler(itwRouter, "get", addItwPrefix("/authorize"), (req, res) => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { client_id, request_uri, idphint } = req.query; + res.status(200).send("authorization_token"); +}); /** * Callback Endpoint