Skip to content

Commit 41f7a83

Browse files
committed
🔊 Add who's consuming deprecated APIs
1 parent f4d4fd0 commit 41f7a83

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

apps/viewer/src/pages/api/typebots.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import prisma from "@typebot.io/prisma";
33
import type { NextApiRequest, NextApiResponse } from "next";
44
import { authenticateUser } from "@/helpers/authenticateUser";
55

6+
// Used by Zapier, Make.com
67
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
78
if (req.method === "GET") {
89
const user = await authenticateUser(req);

apps/viewer/src/pages/api/typebots/[typebotId]/webhookBlocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import prisma from "@typebot.io/prisma";
66
import type { NextApiRequest, NextApiResponse } from "next";
77
import { authenticateUser } from "@/helpers/authenticateUser";
88

9+
// Used by Make.com
910
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1011
if (req.method === "GET") {
1112
const user = await authenticateUser(req);

apps/viewer/src/pages/api/typebots/[typebotId]/webhookSteps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import prisma from "@typebot.io/prisma";
66
import type { NextApiRequest, NextApiResponse } from "next";
77
import { authenticateUser } from "@/helpers/authenticateUser";
88

9+
// Used by Zapier
910
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1011
if (req.method === "GET") {
1112
const user = await authenticateUser(req);

apps/viewer/src/pages/api/users/me.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isNotDefined } from "@typebot.io/lib/utils";
33
import type { NextApiRequest, NextApiResponse } from "next";
44
import { authenticateUser } from "@/helpers/authenticateUser";
55

6+
// Used by Zapier and Make.com to make sure authentication is working
67
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
78
if (req.method === "GET") {
89
const user = await authenticateUser(req);

0 commit comments

Comments
 (0)