Endpoint fixes
parent
91a4a6dc6e
commit
c0320e3f3d
|
@ -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({
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue