File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed
apps/viewer/src/pages/api Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import prisma from "@typebot.io/prisma";
33import type { NextApiRequest , NextApiResponse } from "next" ;
44import { authenticateUser } from "@/helpers/authenticateUser" ;
55
6+ // Used by Zapier, Make.com
67const handler = async ( req : NextApiRequest , res : NextApiResponse ) => {
78 if ( req . method === "GET" ) {
89 const user = await authenticateUser ( req ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import prisma from "@typebot.io/prisma";
66import type { NextApiRequest , NextApiResponse } from "next" ;
77import { authenticateUser } from "@/helpers/authenticateUser" ;
88
9+ // Used by Make.com
910const handler = async ( req : NextApiRequest , res : NextApiResponse ) => {
1011 if ( req . method === "GET" ) {
1112 const user = await authenticateUser ( req ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import prisma from "@typebot.io/prisma";
66import type { NextApiRequest , NextApiResponse } from "next" ;
77import { authenticateUser } from "@/helpers/authenticateUser" ;
88
9+ // Used by Zapier
910const handler = async ( req : NextApiRequest , res : NextApiResponse ) => {
1011 if ( req . method === "GET" ) {
1112 const user = await authenticateUser ( req ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { isNotDefined } from "@typebot.io/lib/utils";
33import type { NextApiRequest , NextApiResponse } from "next" ;
44import { authenticateUser } from "@/helpers/authenticateUser" ;
55
6+ // Used by Zapier and Make.com to make sure authentication is working
67const handler = async ( req : NextApiRequest , res : NextApiResponse ) => {
78 if ( req . method === "GET" ) {
89 const user = await authenticateUser ( req ) ;
You can’t perform that action at this time.
0 commit comments