better proxy handling for streams

This commit is contained in:
2025-12-31 01:55:27 +01:00
parent 8dc38ec9a7
commit a4ff19c3d7
6 changed files with 270 additions and 84 deletions

View File

@@ -1,8 +1,9 @@
import { FastifyInstance } from 'fastify';
import { handleProxy } from './proxy.controller';
import {handleProxy, handleProxyOptions} from './proxy.controller';
async function proxyRoutes(fastify: FastifyInstance) {
fastify.get('/proxy', handleProxy);
fastify.options('/proxy', handleProxyOptions);
}
export default proxyRoutes;