beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.44k stars 920 forks source link

Routers are not being generated #800

Open jeffdoubleyou opened 3 years ago

jeffdoubleyou commented 3 years ago

I am not sure if routers are supposed to be automatically generated in v2 any longer, but they don't seem to be generated for me when running my application.

I see some reference to a new bee generate command "bee generate routers", but this doesn't seem to exist in bee v2.0.2.

How do you generate the routers/commentsRouter.go file using v2? I cannot seem to find any reference to this in the documentation or any pathway into this from the code.

What am I missing?

Thank you.

EDIT:

I was able to use the tool from commit 22a4b07b4a646559a062cb3914bc1c97c504a216, which seemed to work fine for me. Any reason this isn't included? Should I be using some other method of generating routers?

flycash commented 3 years ago

Yes, it's in develop branch. Please update your Bee version to newest develop commit id