mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
use httpMethod if fixedmethod not is available
This commit is contained in:
parent
121a100683
commit
ad39ab3b34
@ -36,7 +36,7 @@ export default class ComplexController {
|
|||||||
const fn = this[httpMethod][methodKey]
|
const fn = this[httpMethod][methodKey]
|
||||||
|
|
||||||
let endpoint = {
|
let endpoint = {
|
||||||
method: fixedMethod,
|
method: fixedMethod ?? httpMethod,
|
||||||
route: methodKey,
|
route: methodKey,
|
||||||
middlewares: [],
|
middlewares: [],
|
||||||
fn: fn,
|
fn: fn,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user