From c0320e3f3d320091ee9a049e3abaf285169ed555 Mon Sep 17 00:00:00 2001 From: zomars Date: Mon, 13 Jun 2022 15:54:40 -0600 Subject: [PATCH] Endpoint fixes --- packages/app-store/exchange2013calendar/api/add.ts | 4 ++-- packages/app-store/exchange2016calendar/api/add.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app-store/exchange2013calendar/api/add.ts b/packages/app-store/exchange2013calendar/api/add.ts index 6fab8f18b9..1a0e9d98dd 100644 --- a/packages/app-store/exchange2013calendar/api/add.ts +++ b/packages/app-store/exchange2013calendar/api/add.ts @@ -53,8 +53,8 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { return { url: "/apps/installed" }; } -async function getHandler() { - return { url: "/apps/exchange2013-calendar/setup" }; +async function getHandler(req: NextApiRequest, res: NextApiResponse) { + return res.status(200).json({ url: "/apps/exchange2013-calendar/setup" }); } export default defaultHandler({ diff --git a/packages/app-store/exchange2016calendar/api/add.ts b/packages/app-store/exchange2016calendar/api/add.ts index 9aa7283b58..b8c0c9d327 100644 --- a/packages/app-store/exchange2016calendar/api/add.ts +++ b/packages/app-store/exchange2016calendar/api/add.ts @@ -53,8 +53,8 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { return { url: "/apps/installed" }; } -async function getHandler() { - return { url: "/apps/exchange2016-calendar/setup" }; +async function getHandler(req: NextApiRequest, res: NextApiResponse) { + return res.status(200).json({ url: "/apps/exchange2016-calendar/setup" }); } export default defaultHandler({