feat: register webhook endpoint

This commit is contained in:
Rohit
2025-05-27 20:09:52 +05:30
parent d38a5cd39c
commit 23aa1c10a8
2 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import { router as storage } from './storage';
import { router as auth } from './auth';
import { router as integration } from './integration';
import { router as proxy } from './proxy';
import { router as webhook } from './webhook';
export {
record,
@@ -11,5 +12,6 @@ export {
storage,
auth,
integration,
proxy
proxy,
webhook
};

View File

@@ -4,7 +4,7 @@ import http from 'http';
import cors from 'cors';
import dotenv from 'dotenv';
dotenv.config();
import { record, workflow, storage, auth, integration, proxy } from './routes';
import { record, workflow, storage, auth, integration, proxy, webhook } from './routes';
import { BrowserPool } from "./browser-management/classes/BrowserPool";
import logger from './logger';
import { connectDB, syncDB } from './storage/db'
@@ -88,6 +88,7 @@ export const browserPool = new BrowserPool();
// parse cookies - "cookie" is true in csrfProtection
app.use(cookieParser())
app.use('/webhook', webhook);
app.use('/record', record);
app.use('/workflow', workflow);
app.use('/storage', storage);