mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 02:24:16 +00:00
pass constructor args
This commit is contained in:
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user