mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
support for useRoute
static
This commit is contained in:
parent
eb450809d7
commit
3fb1d7dd33
@ -42,6 +42,10 @@ class Controller {
|
|||||||
fn: fn,
|
fn: fn,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof this.constructor.useRoute === "string") {
|
||||||
|
endpoint.route = this.constructor.useRoute + endpoint.route
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof fn === "object") {
|
if (typeof fn === "object") {
|
||||||
endpoint.middlewares = fn.middlewares
|
endpoint.middlewares = fn.middlewares
|
||||||
endpoint.fn = fn.fn
|
endpoint.fn = fn.fn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user