mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
path request model
This commit is contained in:
parent
a49c0b086f
commit
eb07cfe576
@ -112,10 +112,7 @@ class Server {
|
|||||||
|
|
||||||
serverManifest.write({ lastStart: Date.now() })
|
serverManifest.write({ lastStart: Date.now() })
|
||||||
|
|
||||||
return this
|
// patch request model with a middleware
|
||||||
}
|
|
||||||
|
|
||||||
initialize = async () => {
|
|
||||||
this.httpInterface.use(async (req, res) => {
|
this.httpInterface.use(async (req, res) => {
|
||||||
// make sure req has an body and query
|
// make sure req has an body and query
|
||||||
if (typeof req.body === "undefined") {
|
if (typeof req.body === "undefined") {
|
||||||
@ -131,6 +128,10 @@ class Server {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
initialize = async () => {
|
||||||
//* set server defined headers
|
//* set server defined headers
|
||||||
this.initializeHeaders()
|
this.initializeHeaders()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user