1
0
mirror of https://github.com/ragestudio/comty.git synced 2025-07-11 10:14:16 +00:00

pass constructor args

This commit is contained in:
SrGooglo 2025-04-01 00:49:46 +00:00
parent a8d48afe70
commit e49df56952

@ -28,9 +28,9 @@ function getHttpServerEngine(extraOptions = {}, handler = () => {}) {
}
export default class Proxy {
constructor() {
constructor(config = {}) {
this.routes = new Map()
this.config = {}
this.config = config
// Crear servidor HTTP
this.server = getHttpServerEngine({}, this.handleRequest.bind(this))