mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
added id
This commit is contained in:
parent
c1c9e74df5
commit
9985c26c59
@ -68,6 +68,7 @@ class RequestServer {
|
||||
this.params = params ?? {}
|
||||
|
||||
// set params jails
|
||||
this.id = this.params.id ?? runtime.helpers.getRootPackage().name
|
||||
this.routes = []
|
||||
this.endpoints = { ...endpoints }
|
||||
this.middlewares = [...defaultMiddlewares]
|
||||
@ -231,7 +232,7 @@ class RequestServer {
|
||||
})
|
||||
|
||||
this.httpServer.listen(this.params.port, () => {
|
||||
nethub.registerOrigin({ entry: "/", oid: this.oid })
|
||||
nethub.registerOrigin({ entry: "/", oid: this.oid, id: this.id })
|
||||
console.log(`✅ Ready on port ${this.params.port}!`)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user