feat: app.use proxy routes

This commit is contained in:
karishmas6
2024-10-01 15:30:13 +05:30
parent 911c40453f
commit c348a98803

View File

@@ -3,7 +3,7 @@ import http from 'http';
import cors from 'cors';
import dotenv from 'dotenv';
dotenv.config();
import { record, workflow, storage, auth, integration } from './routes';
import { record, workflow, storage, auth, integration, proxy } from './routes';
import { BrowserPool } from "./browser-management/classes/BrowserPool";
import logger from './logger';
import { connectDB, syncDB } from './db/config';
@@ -46,6 +46,7 @@ app.use('/workflow', workflow);
app.use('/storage', storage);
app.use('/auth', auth);
app.use('/integration', integration);
app.use('/proxy', proxy);
app.get('/', function (req, res) {
return res.send('Maxun server started 🚀');