mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34: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]
|
||||
|
||||
let endpoint = {
|
||||
method: fixedMethod,
|
||||
method: fixedMethod ?? httpMethod,
|
||||
route: methodKey,
|
||||
middlewares: [],
|
||||
fn: fn,
|
||||
|
Loading…
x
Reference in New Issue
Block a user