* WIP close.com app * Removing leaked dev key (now invalid) * Misspelled env variable * Making progress still WIP * Progress + tests * Final touches * More unit tests * Finished up tests * Merge main * Removing unneeded stuff + submodules * Removing static props, fields fix * Removing unneeded stuff p2 * Commenting * Standarizing APIs * Zodifying Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com>
11 lines
409 B
TypeScript
11 lines
409 B
TypeScript
import type { NextApiRequest, NextApiResponse } from "next";
|
|
|
|
import checkSession from "../../_utils/auth";
|
|
import { checkInstalled } from "../../_utils/installation";
|
|
|
|
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
|
const session = checkSession(req);
|
|
await checkInstalled("closecom", session.user?.id);
|
|
return res.status(200).json({ url: "/apps/closecom/setup" });
|
|
}
|