feat: register webhook endpoint
This commit is contained in:
@@ -4,6 +4,7 @@ import { router as storage } from './storage';
|
|||||||
import { router as auth } from './auth';
|
import { router as auth } from './auth';
|
||||||
import { router as integration } from './integration';
|
import { router as integration } from './integration';
|
||||||
import { router as proxy } from './proxy';
|
import { router as proxy } from './proxy';
|
||||||
|
import { router as webhook } from './webhook';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
record,
|
record,
|
||||||
@@ -11,5 +12,6 @@ export {
|
|||||||
storage,
|
storage,
|
||||||
auth,
|
auth,
|
||||||
integration,
|
integration,
|
||||||
proxy
|
proxy,
|
||||||
|
webhook
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import http from 'http';
|
|||||||
import cors from 'cors';
|
import cors from 'cors';
|
||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
dotenv.config();
|
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 { BrowserPool } from "./browser-management/classes/BrowserPool";
|
||||||
import logger from './logger';
|
import logger from './logger';
|
||||||
import { connectDB, syncDB } from './storage/db'
|
import { connectDB, syncDB } from './storage/db'
|
||||||
@@ -88,6 +88,7 @@ export const browserPool = new BrowserPool();
|
|||||||
// parse cookies - "cookie" is true in csrfProtection
|
// parse cookies - "cookie" is true in csrfProtection
|
||||||
app.use(cookieParser())
|
app.use(cookieParser())
|
||||||
|
|
||||||
|
app.use('/webhook', webhook);
|
||||||
app.use('/record', record);
|
app.use('/record', record);
|
||||||
app.use('/workflow', workflow);
|
app.use('/workflow', workflow);
|
||||||
app.use('/storage', storage);
|
app.use('/storage', storage);
|
||||||
|
|||||||
Reference in New Issue
Block a user