Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请示是不是不支持tegg的写法 #21

Open
sinianzhiren opened this issue Apr 9, 2022 · 1 comment
Open

请示是不是不支持tegg的写法 #21

sinianzhiren opened this issue Apr 9, 2022 · 1 comment

Comments

@sinianzhiren
Copy link

https://github.com/eggjs/tegg

报错的大概信息是:
error: ENOENT: no such file or directory, open '/Users/xxxx/Documents/my-gitlab-project/egg-project-example/hello-tegg/app/router.ts

tegg 的写法是将路由放在 controller里面了,类似midway 写法了

@JsonMa
Copy link
Owner

JsonMa commented Apr 9, 2022

嗯,目前还是只支持官网的写法,即通过router.ts文件来定义路由。tegg插件定义路由的方式暂不支持哦!tegg是通过装饰器来定义路由,跟nest和midway一样。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants