Skip to content

解析不出 controller action #26

@kerryChen95

Description

@kerryChen95

问题表现

解析不出 controller action

复现数据示例

// app/router.ts
router
  .get(
    'path/to/foo',
    middlewareBar,
    // 注意末尾有逗号
    app.controller.foo.action,
  )

根本原因

34, 35行解析得太理想化了,建议在单元测试中补充边界case。

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions