Endpoint fixes

pull/2493/head
zomars 2022-06-13 15:54:40 -06:00
parent 91a4a6dc6e
commit c0320e3f3d
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
return { url: "/apps/installed" }; return { url: "/apps/installed" };
} }
async function getHandler() { async function getHandler(req: NextApiRequest, res: NextApiResponse) {
return { url: "/apps/exchange2013-calendar/setup" }; return res.status(200).json({ url: "/apps/exchange2013-calendar/setup" });
} }
export default defaultHandler({ export default defaultHandler({

View File

@ -53,8 +53,8 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
return { url: "/apps/installed" }; return { url: "/apps/installed" };
} }
async function getHandler() { async function getHandler(req: NextApiRequest, res: NextApiResponse) {
return { url: "/apps/exchange2016-calendar/setup" }; return res.status(200).json({ url: "/apps/exchange2016-calendar/setup" });
} }
export default defaultHandler({ export default defaultHandler({