diff --git a/server/src/routes/proxy.ts b/server/src/routes/proxy.ts new file mode 100644 index 00000000..2f130bb9 --- /dev/null +++ b/server/src/routes/proxy.ts @@ -0,0 +1,14 @@ +import { Router, Request, Response } from 'express'; +export const router = Router(); + +router.post('/config', async (req: Request, res: Response) => { + const { proxyConfig } = req.body; + try { + if (!proxyConfig) { + return res.status(400).send('Proxy configuration is required'); + } + console.log(proxyConfig); + } catch (error: any) { + res.status(500).send(`Could not send proxy configuration - ${error.message}`) + } +}) \ No newline at end of file